[asterisk-commits] file: branch 1.4 r85850 - /branches/1.4/apps/app_hasnewvoicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 16 09:52:22 CDT 2007


Author: file
Date: Tue Oct 16 09:52:22 2007
New Revision: 85850

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85850
Log:
Check to make sure a value has been given to the VMCOUNT dialplan function.
(closes issue #10996)
Reported by: marsosa

Modified:
    branches/1.4/apps/app_hasnewvoicemail.c

Modified: branches/1.4/apps/app_hasnewvoicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_hasnewvoicemail.c?view=diff&rev=85850&r1=85849&r2=85850
==============================================================================
--- branches/1.4/apps/app_hasnewvoicemail.c (original)
+++ branches/1.4/apps/app_hasnewvoicemail.c Tue Oct 16 09:52:22 2007
@@ -161,6 +161,9 @@
 		AST_APP_ARG(folder);
 	);
 
+	if (ast_strlen_zero(argsstr))
+		return -1;
+
 	u = ast_module_user_add(chan);
 
 	buf[0] = '\0';




More information about the asterisk-commits mailing list