diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/alias/alias.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/alias/alias.c b/src/plugins/alias/alias.c index 4971e3c6f..75dd5659b 100644 --- a/src/plugins/alias/alias.c +++ b/src/plugins/alias/alias.c @@ -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 |