diff options
Diffstat (limited to 'funcs/func_vmcount.c')
-rw-r--r-- | funcs/func_vmcount.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/funcs/func_vmcount.c b/funcs/func_vmcount.c index 0e6cfef1e..cde16653f 100644 --- a/funcs/func_vmcount.c +++ b/funcs/func_vmcount.c @@ -55,6 +55,9 @@ static int acf_vmcount_exec(struct ast_channel *chan, const char *cmd, char *arg buf[0] = '\0'; + if (ast_strlen_zero(argsstr)) + return -1; + AST_STANDARD_APP_ARGS(args, argsstr); if (strchr(args.vmbox, '@')) { |