mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 14:56:39 +02:00
core: fix crash in completion of filenames
This commit is contained in:
@@ -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++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user