summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/alias/alias.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/alias/alias.c b/src/plugins/alias/alias.c
index 75dd5659b..83dcfe06e 100644
--- a/src/plugins/alias/alias.c
+++ b/src/plugins/alias/alias.c
@@ -351,7 +351,7 @@ alias_replace_args (const char *alias_args, const char *user_args)
if (argv)
weechat_string_free_split (argv);
- return res;
+ return (res) ? res : strdup ("");
}
/*