Commit bce40f37 authored by Simon Morlat's avatar Simon Morlat

allow passing NULL LinphoneContent to API.

parent d11111b2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment