[asterisk-commits] jpeeler: trunk r159402 - /trunk/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 25 21:18:05 CST 2008


Author: jpeeler
Date: Tue Nov 25 21:18:01 2008
New Revision: 159402

URL: http://svn.digium.com/view/asterisk?view=rev&rev=159402
Log:
Always parse arguments in park_call_exec so that app_args is valid. This prevents a crash when executing Park from the dialplan with no arguments.


Modified:
    trunk/main/features.c

Modified: trunk/main/features.c
URL: http://svn.digium.com/view/asterisk/trunk/main/features.c?view=diff&rev=159402&r1=159401&r2=159402
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Tue Nov 25 21:18:01 2008
@@ -2892,10 +2892,8 @@
 		AST_APP_ARG(options);
 	);
 
-	if (!ast_strlen_zero(data)) {
-		parse = ast_strdupa(data);
-		AST_STANDARD_APP_ARGS(app_args, parse);
-	}
+	parse = ast_strdupa(data);
+	AST_STANDARD_APP_ARGS(app_args, parse);
 
 	ast_copy_string(orig_exten, chan->exten, sizeof(orig_exten));
 




More information about the asterisk-commits mailing list