11 Dec
2007
11 Dec
'07
10:47 a.m.
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; }
6904
Age (days ago)
6904
Last active (days ago)
0 comments
1 participants
participants (1)
-
Freeswitch SVN