diff options
-rw-r--r-- | src/core/wee-completion.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/wee-completion.c b/src/core/wee-completion.c index e20a85629..11267c061 100644 --- a/src/core/wee-completion.c +++ b/src/core/wee-completion.c @@ -620,7 +620,7 @@ completion_list_add_commands_cb (const void *pointer, void *data, (void) data; (void) buffer; - pos = strchr (completion_item, ':'); + pos = (completion_item) ? strchr (completion_item, ':') : NULL; if (pos) pos++; @@ -991,7 +991,7 @@ completion_list_add_plugins_commands_cb (const void *pointer, void *data, if (argc > 0) { - pos = strchr (completion_item, ':'); + pos = (completion_item) ? strchr (completion_item, ':') : NULL; if (pos) pos++; @@ -1288,7 +1288,7 @@ completion_list_add_weechat_commands_cb (const void *pointer, void *data, (void) data; (void) buffer; - pos = strchr (completion_item, ':'); + pos = (completion_item) ? strchr (completion_item, ':') : NULL; if (pos) pos++; |