[commit] r3228 - freeswitch/trunk/src/mod/applications/mod_dptools
Author: anthm Date: Sun Oct 29 13:15:53 2006 New Revision: 3228 Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c Log: doh, thx CtRiX Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c ============================================================================== --- freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c (original) +++ freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c Sun Oct 29 13:15:53 2006 @@ -186,7 +186,7 @@ int argc = 0; switch_event_types_t type = SWITCH_EVENT_PRESENCE_IN; - if ((lbuf = strdup(fmt)) && (argc = switch_separate_string(lbuf, '|', argv, (sizeof(argv) / sizeof(argv[0])))) > 0) { + if (fmt && (lbuf = strdup(fmt)) && (argc = switch_separate_string(lbuf, '|', argv, (sizeof(argv) / sizeof(argv[0])))) > 0) { if (!strcasecmp(argv[0], "out")) { type = SWITCH_EVENT_PRESENCE_OUT; } else if (argc != 4) {
participants (1)
-
Freeswitch SVN