[svn-commits] trunk - r7230 /trunk/apps/app_cut.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Nov 29 23:29:38 CST 2005


Author: russell
Date: Tue Nov 29 23:29:36 2005
New Revision: 7230

URL: http://svn.digium.com/view/asterisk?rev=7230&view=rev
Log:
print an error message if invalid arguments are specified (issue #5872)

Modified:
    trunk/apps/app_cut.c

Modified: trunk/apps/app_cut.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_cut.c?rev=7230&r1=7229&r2=7230&view=diff
==============================================================================
--- trunk/apps/app_cut.c (original)
+++ trunk/apps/app_cut.c Tue Nov 29 23:29:36 2005
@@ -252,6 +252,8 @@
 				}
 			}
 		}
+	} else {
+		return ERROR_NOARG;
 	}
 	return 0;
 }
@@ -385,7 +387,7 @@
 
 	switch (cut_internal(chan, data, buf, len)) {
 	case ERROR_NOARG:
-		ast_log(LOG_ERROR, "Cut() requires an argument\n");
+		ast_log(LOG_ERROR, "CUT() requires an argument\n");
 		break;
 	case ERROR_NOMEM:
 		ast_log(LOG_ERROR, "Out of memory\n");



More information about the svn-commits mailing list