eldbus: null checking before using the pointer

This commit is contained in:
WooHyun Jung 2016-09-20 11:18:52 +09:00
parent 71ec6a95b8
commit fa3af69e0c
1 changed files with 2 additions and 0 deletions

View File

@ -886,6 +886,8 @@ eldbus_message_method_return_new(const Eldbus_Message *msg)
ELDBUS_MESSAGE_CHECK_RETVAL(msg, NULL);
reply = eldbus_message_new(EINA_TRUE);
EINA_SAFETY_ON_NULL_RETURN_VAL(reply, NULL);
reply->dbus_msg = dbus_message_new_method_return(msg->dbus_msg);
dbus_message_iter_init_append(reply->dbus_msg,