[asterisk-commits] russell: branch russell/jack r98579 - /team/russell/jack/apps/app_jack.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Jan 12 17:53:55 CST 2008
Author: russell
Date: Sat Jan 12 17:53:54 2008
New Revision: 98579
URL: http://svn.digium.com/view/asterisk?view=rev&rev=98579
Log:
Don't blow up if no mode is specified
Modified:
team/russell/jack/apps/app_jack.c
Modified: team/russell/jack/apps/app_jack.c
URL: http://svn.digium.com/view/asterisk/team/russell/jack/apps/app_jack.c?view=diff&rev=98579&r1=98578&r2=98579
==============================================================================
--- team/russell/jack/apps/app_jack.c (original)
+++ team/russell/jack/apps/app_jack.c Sat Jan 12 17:53:54 2008
@@ -812,9 +812,9 @@
goto return_error;
}
- if (strcasecmp(args.mode, "manipulate")) {
+ if (ast_strlen_zero(args.mode) || strcasecmp(args.mode, "manipulate")) {
ast_log(LOG_ERROR, "'%s' is not a supported mode. Only manipulate is supported.\n",
- args.mode);
+ S_OR(args.mode, "<none>"));
goto return_error;
}
More information about the asterisk-commits
mailing list