core: fix crash in completion of filenames
parent
d2a63b2b44
commit
528c769e71
|
@ -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++;
|
||||
|
||||
|
|
Loading…
Reference in New Issue