[Freeswitch-svn] [commit] r6633 - freeswitch/trunk/src/include
Freeswitch SVN
mikej at freeswitch.org
Tue Dec 11 05:47:46 EST 2007
Author: mikej
Date: Tue Dec 11 05:47:46 2007
New Revision: 6633
Modified:
freeswitch/trunk/src/include/switch_utils.h
Log:
check to avoid potential seg
Modified: freeswitch/trunk/src/include/switch_utils.h
==============================================================================
--- freeswitch/trunk/src/include/switch_utils.h (original)
+++ freeswitch/trunk/src/include/switch_utils.h Tue Dec 11 05:47:46 2007
@@ -216,6 +216,10 @@
char *p, *S = NULL, *Q = NULL;
switch_bool_t tf = SWITCH_FALSE;
+ if (!s || !q) {
+ return SWITCH_FALSE;
+ }
+
if (strstr(s, q)) {
return SWITCH_TRUE;
}
More information about the Freeswitch-svn
mailing list