From b31790def42f26456599a71f1dcbdcfc41946dc4 Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Wed, 30 Apr 2008 18:41:16 +0000 Subject: [PATCH] *** empty log message *** --- mbuni/mmlib/mms_uaprof.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbuni/mmlib/mms_uaprof.c b/mbuni/mmlib/mms_uaprof.c index a9d1fd8..f31c949 100644 --- a/mbuni/mmlib/mms_uaprof.c +++ b/mbuni/mmlib/mms_uaprof.c @@ -727,9 +727,9 @@ static int modify_msg(MIMEEntity *msg, MmsUaProfile *prof) sup = modify_msg(x, prof); if (!sup && /* not supported and is the presentation part, set flag */ - cid && octstr_compare(cid, startp) == 0) + cid && startp && octstr_compare(cid, startp) == 0) sflag = 1; - if (cid) octstr_destroy(cid); + octstr_destroy(cid); mime_entity_replace_part(msg, i, x); /* Put back changed one */ http_destroy_headers(hx);