diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-10-06 21:45:27 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-10-06 21:45:27 +0200 |
commit | 528c769e71a79fd7e7a3fafb84388864b3abe000 (patch) | |
tree | f1140804294860b8baf121a8ed53abc3caf84cd7 | |
parent | d2a63b2b44247af8193f7d9a5e70df50c8b146a3 (diff) | |
download | weechat-528c769e71a79fd7e7a3fafb84388864b3abe000.zip |
core: fix crash in completion of filenames
-rw-r--r-- | src/core/wee-completion.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/wee-completion.c b/src/core/wee-completion.c index bc52d72ec..e20a85629 100644 --- a/src/core/wee-completion.c +++ b/src/core/wee-completion.c @@ -446,12 +446,11 @@ completion_list_add_filename_cb (const void *pointer, void *data, /* make C compiler happy */ (void) pointer; (void) data; - (void) completion_item; (void) buffer; completion->add_space = 0; - pos_args = strchr (completion_item, ':'); + pos_args = (completion_item) ? strchr (completion_item, ':') : NULL; if (pos_args) pos_args++; |