[asterisk-commits] branch 1.2 - commit revision 7218
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Nov 29 00:12:32 CST 2005
Author: russell
Date: Tue Nov 29 00:12:29 2005
New Revision: 7218
URL: http://svn.digium.com/view/asterisk?rev=7218&view=rev
Log:
print an error message if invalid arguments are specified
Modified:
branches/1.2/apps/app_cut.c
Modified: branches/1.2/apps/app_cut.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_cut.c?rev=7218&r1=7217&r2=7218&view=diff
==============================================================================
--- branches/1.2/apps/app_cut.c (original)
+++ branches/1.2/apps/app_cut.c Tue Nov 29 00:12:29 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 asterisk-commits
mailing list