]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix regression from today
authorBrian West <brian@freeswitch.org>
Wed, 3 Mar 2010 22:30:01 +0000 (22:30 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 3 Mar 2010 22:30:01 +0000 (22:30 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16889 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_caller.c

index a8a175189c86a785bc71a85c6b9694d8b4f4da66..16c03f71440b74f41d71c7ab9a98320d7cb99e61 100644 (file)
@@ -443,7 +443,7 @@ SWITCH_DECLARE(void) switch_caller_extension_add_application(switch_core_session
 
 
 
-               if ((p = strstr(caller_application->application_data, "\\'"))) {
+               if (caller_application->application_data && (p = strstr(caller_application->application_data, "\\'"))) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "App not added, Invalid character sequence in data string [%s]\n", 
                                                          caller_application->application_data);
                        return;