From bce40f37753f6c1264fc9422e77ebac2629b75e7 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Fri, 13 Sep 2013 21:51:07 +0200 Subject: [PATCH] allow passing NULL LinphoneContent to API. --- coreapi/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/info.c b/coreapi/info.c index ab1c2cd6a..539855ab8 100644 --- a/coreapi/info.c +++ b/coreapi/info.c @@ -91,7 +91,7 @@ const LinphoneContent *linphone_content_from_sal_body(LinphoneContent *obj, cons } SalBody *sal_body_from_content(SalBody *body, const LinphoneContent *lc){ - if (lc->type){ + if (lc && lc->type){ body->type=lc->type; body->subtype=lc->subtype; body->data=lc->data;