aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_hasnewvoicemail.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-16 14:52:22 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-16 14:52:22 +0000
commitc09278be8fb15251a78480687b4a0aaa5ec368a7 (patch)
tree6aec405e95674982bd2b87f0e5baa241773ce945 /apps/app_hasnewvoicemail.c
parenta426cfa3304ef64c91fca20b194f4ed3268ce146 (diff)
Check to make sure a value has been given to the VMCOUNT dialplan function.
(closes issue #10996) Reported by: marsosa git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85850 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_hasnewvoicemail.c')
-rw-r--r--apps/app_hasnewvoicemail.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_hasnewvoicemail.c b/apps/app_hasnewvoicemail.c
index 17e2838ed..8f3d33504 100644
--- a/apps/app_hasnewvoicemail.c
+++ b/apps/app_hasnewvoicemail.c
@@ -161,6 +161,9 @@ static int acf_vmcount_exec(struct ast_channel *chan, char *cmd, char *argsstr,
AST_APP_ARG(folder);
);
+ if (ast_strlen_zero(argsstr))
+ return -1;
+
u = ast_module_user_add(chan);
buf[0] = '\0';