aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Antonov <ngortheone@users.noreply.github.com>2019-07-29 22:56:59 -0400
committerIhor Antonov <ngortheone@users.noreply.github.com>2019-07-29 22:56:59 -0400
commit11ed7377f95c8ae0c89dbfb4258df9f34da4067d (patch)
treefd0acb91a36624ccc6cfceb01b6ac1a408ee4996
parentbae02eb3968be1c9677283d030fbbe6dd02cb180 (diff)
downloadrneovim-11ed7377f95c8ae0c89dbfb4258df9f34da4067d.tar.gz
rneovim-11ed7377f95c8ae0c89dbfb4258df9f34da4067d.tar.bz2
rneovim-11ed7377f95c8ae0c89dbfb4258df9f34da4067d.zip
clang/"null pointer dereference": ex_cmds.c
-rw-r--r--src/nvim/ex_cmds.c6
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.