[Freeswitch-svn] [commit] r4393 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Sun Feb 25 17:44:36 EST 2007


Author: mikej
Date: Sun Feb 25 17:44:36 2007
New Revision: 4393

Modified:
   freeswitch/trunk/src/switch_channel.c

Log:
don't strchr on NULL, second resolution to MODAPP-2

Modified: freeswitch/trunk/src/switch_channel.c
==============================================================================
--- freeswitch/trunk/src/switch_channel.c	(original)
+++ freeswitch/trunk/src/switch_channel.c	Sun Feb 25 17:44:36 2007
@@ -1202,7 +1202,7 @@
 	size_t sp = 0, len = 0, olen = 0, vtype = 0, br = 0, cpos, block = 128;
 	char *sub_val = NULL, *func_val = NULL;
 
-	if (!strchr(in, '$')) {
+	if (!in || !strchr(in, '$')) {
 		return in;
 	}
 



More information about the Freeswitch-svn mailing list