diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index 8fe22a9f8c..36267500fb 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Sun May 25 09:53:58 EDT 2008 +Sun May 25 09:54:31 EDT 2008 diff --git a/libs/sofia-sip/libsofia-sip-ua/msg/msg_mime.c b/libs/sofia-sip/libsofia-sip-ua/msg/msg_mime.c index ad41199ae4..f3099b5d8f 100644 --- a/libs/sofia-sip/libsofia-sip-ua/msg/msg_mime.c +++ b/libs/sofia-sip/libsofia-sip-ua/msg/msg_mime.c @@ -1871,8 +1871,10 @@ char *msg_content_type_dup_one(msg_header_t *dst, msg_header_t const *src, b = msg_params_dup(&c->c_params, o->c_params, b, xtra); MSG_STRING_DUP(b, c->c_type, o->c_type); - c->c_subtype = strchr(c->c_type, '/'); - c->c_subtype++; + + c->c_subtype = c->c_type ? strchr(c->c_type, '/') : NULL; + if (c->c_subtype) + c->c_subtype++; assert(b <= end); (void)end;