allow passing NULL LinphoneContent to API.

This commit is contained in:
Simon Morlat 2013-09-13 21:51:07 +02:00
parent d11111b225
commit bce40f3775

View file

@ -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;