diff options
author | Ihor Antonov <ngortheone@users.noreply.github.com> | 2019-07-29 22:56:59 -0400 |
---|---|---|
committer | Ihor Antonov <ngortheone@users.noreply.github.com> | 2019-07-29 22:56:59 -0400 |
commit | 11ed7377f95c8ae0c89dbfb4258df9f34da4067d (patch) | |
tree | fd0acb91a36624ccc6cfceb01b6ac1a408ee4996 | |
parent | bae02eb3968be1c9677283d030fbbe6dd02cb180 (diff) | |
download | rneovim-11ed7377f95c8ae0c89dbfb4258df9f34da4067d.tar.gz rneovim-11ed7377f95c8ae0c89dbfb4258df9f34da4067d.tar.bz2 rneovim-11ed7377f95c8ae0c89dbfb4258df9f34da4067d.zip |
clang/"null pointer dereference": ex_cmds.c
-rw-r--r-- | src/nvim/ex_cmds.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 9a2b683bac..f50fb49f71 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -5324,13 +5324,11 @@ static void helptags_one(char_u *const dir, const char_u *const ext, FreeWild(filecount, files); - if (!got_int) { + if (!got_int && ga.ga_data != NULL) { /* * Sort the tags. */ - if (ga.ga_data != NULL) { - sort_strings((char_u **)ga.ga_data, ga.ga_len); - } + sort_strings((char_u **)ga.ga_data, ga.ga_len); /* * Check for duplicates. |