1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

alias: return NULL if alias or user arguments are NULL in function alias_replace_args

This commit is contained in:
Sébastien Helleu
2023-05-18 11:08:08 +02:00
parent 8d838e89ee
commit 6095a0fe40
+3
View File
@@ -227,6 +227,9 @@ alias_replace_args (const char *alias_args, const char *user_args)
const char *start, *pos;
int n, m, argc, length_res, args_count, offset;
if (!alias_args || !user_args)
return NULL;
argv = weechat_string_split (user_args, " ", NULL,
WEECHAT_STRING_SPLIT_STRIP_LEFT
| WEECHAT_STRING_SPLIT_STRIP_RIGHT