]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh, thx CtRiX
authorAnthony Minessale <anthony.minessale@gmail.com>
Sun, 29 Oct 2006 18:15:53 +0000 (18:15 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sun, 29 Oct 2006 18:15:53 +0000 (18:15 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3228 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_dptools/mod_dptools.c

index 7722c8aff9a3e58d0fd39990d83994c048269e77..5bb8d5726aef6ad64121643fefcad1f8c4a42a9a 100644 (file)
@@ -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) {