From fa3af69e0c8e6f5fe459f1de006b5f62bd14fef9 Mon Sep 17 00:00:00 2001 From: WooHyun Jung Date: Tue, 20 Sep 2016 11:18:52 +0900 Subject: [PATCH] eldbus: null checking before using the pointer --- src/lib/eldbus/eldbus_message.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/eldbus/eldbus_message.c b/src/lib/eldbus/eldbus_message.c index f18196c..2464d0e 100644 --- a/src/lib/eldbus/eldbus_message.c +++ b/src/lib/eldbus/eldbus_message.c @@ -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, -- 2.7.4