From 08ed3b66fcd36d105ccce1efe31f22070722258a Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sun, 25 May 2008 13:51:11 +0000 Subject: [PATCH] Tue May 20 07:46:10 EDT 2008 Pekka.Pessi@nokia.com * 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 | 2 +- libs/sofia-sip/libsofia-sip-ua/nua/nua_event_server.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index b1e582ebce..a4dca1e415 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Sun May 25 09:50:22 EDT 2008 +Sun May 25 09:51:04 EDT 2008 diff --git a/libs/sofia-sip/libsofia-sip-ua/nua/nua_event_server.c b/libs/sofia-sip/libsofia-sip-ua/nua/nua_event_server.c index 363bfbd76a..fd6c6b7f46 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nua/nua_event_server.c +++ b/libs/sofia-sip/libsofia-sip-ua/nua/nua_event_server.c @@ -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';