From: Anthony Minessale Date: Sun, 29 Oct 2006 18:15:53 +0000 (+0000) Subject: doh, thx CtRiX X-Git-Tag: v1.0-beta1~1801 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=003fb84e7c9a0b4df0986f8f4157ab0c6bac7cf3;p=thirdparty%2Ffreeswitch.git doh, thx CtRiX git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3228 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 7722c8aff9..5bb8d5726a 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -186,7 +186,7 @@ static switch_status_t presence_api_function(char *fmt, switch_core_session_t *s 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) {