git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3228
d0543943-73ff-0310-b7d9-
9358b9ac24b2
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) {