[Freeswitch-svn] [commit] r8606 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/nua

Freeswitch SVN mikej at freeswitch.org
Sun May 25 09:51:11 EDT 2008


Author: mikej
Date: Sun May 25 09:51:11 2008
New Revision: 8606

Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_event_server.c

Log:
Tue May 20 07:46:10 EDT 2008  Pekka.Pessi at nokia.com
  * nua_event_server.c: fixed klocwork issue



Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Sun May 25 09:51:11 2008
@@ -1 +1 @@
-Sun May 25 09:50:22 EDT 2008
+Sun May 25 09:51:04 EDT 2008

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_event_server.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_event_server.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_event_server.c	Sun May 25 09:51:11 2008
@@ -145,7 +145,7 @@
 
   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';



More information about the Freeswitch-svn mailing list