diff --git a/coreapi/info.c b/coreapi/info.c
index 6d92a0db8..ab1c2cd6a 100644
--- a/coreapi/info.c
+++ b/coreapi/info.c
@@ -85,6 +85,7 @@ const LinphoneContent *linphone_content_from_sal_body(LinphoneContent *obj, cons
obj->subtype=(char*)ref->subtype;
obj->data=(void*)ref->data;
obj->size=ref->size;
+ return obj;
}
return NULL;
}
diff --git a/tester/eventapi_tester.c b/tester/eventapi_tester.c
index c7815f671..c8571c8b6 100644
--- a/tester/eventapi_tester.c
+++ b/tester/eventapi_tester.c
@@ -28,6 +28,8 @@ static const char *subscribe_content="blabla";
static const char *notify_content="blabla";
void linphone_notify_received(LinphoneCore *lc, LinphoneEvent *lev, const char *eventname, const LinphoneContent *content){
+ CU_ASSERT_PTR_NOT_NULL_FATAL(content);
+ CU_ASSERT_TRUE(strcmp(notify_content,(const char*)content->data)==0);
}
void linphone_subscription_state_change(LinphoneCore *lc, LinphoneEvent *lev, LinphoneSubscriptionState state) {
@@ -125,6 +127,7 @@ static void subscribe_test_with_args(bool_t terminated_by_subscriber) {
if (terminated_by_subscriber){
linphone_event_terminate(lev);
}else{
+ CU_ASSERT_PTR_NOT_NULL_FATAL(pauline->lev);
linphone_event_terminate(pauline->lev);
}