From bcd62218548f24a4a878142f150837233a188916 Mon Sep 17 00:00:00 2001 From: Pekka Pessi Date: Tue, 20 May 2008 14:46:10 +0300 Subject: [PATCH] nua_event_server.c: fixed klocwork issue darcs-hash:20080520114610-65a35-49d3ac5ebf84df47f42006df2af81698fb253830.gz --- libsofia-sip-ua/nua/nua_event_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsofia-sip-ua/nua/nua_event_server.c b/libsofia-sip-ua/nua/nua_event_server.c index 363bfbd7..fd6c6b7f 100644 --- a/libsofia-sip-ua/nua/nua_event_server.c +++ b/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'; -- GitLab