core: fix crash in completion of filenames

v2.8-utf8proc
Sébastien Helleu 2019-10-06 21:45:27 +02:00
parent d2a63b2b44
commit 528c769e71
1 changed files with 1 additions and 2 deletions

View File

@ -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++;