]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Tue May 20 07:46:10 EDT 2008 Pekka.Pessi@nokia.com
authorMichael Jerris <mike@jerris.com>
Sun, 25 May 2008 13:51:11 +0000 (13:51 +0000)
committerMichael Jerris <mike@jerris.com>
Sun, 25 May 2008 13:51:11 +0000 (13:51 +0000)
  * nua_event_server.c: fixed klocwork issue

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8606 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/nua/nua_event_server.c

index b1e582ebce9da903e606d1e62c0f975a85651a4b..a4dca1e415fda30d56fb50d6485c3e9e63e011d1 100644 (file)
@@ -1 +1 @@
-Sun May 25 09:50:22 EDT 2008
+Sun May 25 09:51:04 EDT 2008
index 363bfbd76ae2c0bb87147eabd532e175c805777c..fd6c6b7f46a602917bdc2f4098eaceaf72943a59 100644 (file)
@@ -145,7 +145,7 @@ nea_event_t *nh_notifier_event(nua_handle_t *nh,
 
   if (ev == NULL) {
     char *o_type = su_strdup(home, event->o_type);
-    char *o_subtype = strchr(o_type, '.');
+    char *o_subtype = o_type ? strchr(o_type, '.') : NULL;
 
     if (o_subtype)
       *o_subtype++ = '\0';