aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorKillTheMule <KillTheMule@users.noreply.github.com>2016-04-23 22:28:32 +0200
committerKillTheMule <KillTheMule@users.noreply.github.com>2016-04-23 23:43:32 +0200
commit445f0d7eed7c96aa30780622e6ee437794529547 (patch)
tree179a4e502f9a2724962b52351b36009a9b1aa162 /src/nvim/ex_cmds.c
parent3098b18a2b63a841351f6d5e3697cb69db3035ef (diff)
downloadrneovim-445f0d7eed7c96aa30780622e6ee437794529547.tar.gz
rneovim-445f0d7eed7c96aa30780622e6ee437794529547.tar.bz2
rneovim-445f0d7eed7c96aa30780622e6ee437794529547.zip
vim-patch:7.4.822
Problem: More problems reported by coverity. Solution: Avoid the warnings. (Christian Brabandt) https://github.com/vim/vim/commit/cde885473099296c4837de261833f48b24caf87c Applied manually. Files that do not exst anymore: gui.c gui_w16.c gui_w32.c if_xcmdsrv.c os_unix.c
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 69bf7abe6e..4025d42c7b 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -5016,7 +5016,9 @@ helptags_one (
/*
* Sort the tags.
*/
- sort_strings((char_u **)ga.ga_data, ga.ga_len);
+ if (ga.ga_data != NULL) {
+ sort_strings((char_u **)ga.ga_data, ga.ga_len);
+ }
/*
* Check for duplicates.