[asterisk-commits] file: branch 1.4 r47437 - /branches/1.4/apps/app_chanspy.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Nov 10 09:53:17 MST 2006


Author: file
Date: Fri Nov 10 10:53:16 2006
New Revision: 47437

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47437
Log:
Only split up extension and context if a value exists. (issue #8332 reported by loloski)

Modified:
    branches/1.4/apps/app_chanspy.c

Modified: branches/1.4/apps/app_chanspy.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_chanspy.c?view=diff&rev=47437&r1=47436&r2=47437
==============================================================================
--- branches/1.4/apps/app_chanspy.c (original)
+++ branches/1.4/apps/app_chanspy.c Fri Nov 10 10:53:16 2006
@@ -658,7 +658,8 @@
 
 	if ((argc = ast_app_separate_args(data, '|', argv, sizeof(argv) / sizeof(argv[0])))) {
 		context = argv[0];
-		exten = strsep(&context, "@");
+		if (!ast_strlen_zero(argv[0]))
+			exten = strsep(&context, "@");
 		if (ast_strlen_zero(context))
 			context = ast_strdupa(chan->context);
 		if (argc > 1)



More information about the asterisk-commits mailing list