summaryrefslogtreecommitdiff
path: root/src/lib/eldbus
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2016-09-20 11:18:52 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2016-09-20 11:18:52 +0900
commitfa3af69e0c8e6f5fe459f1de006b5f62bd14fef9 (patch)
treed078f2a4e4cf34b3a70c89348f8a77a27c7a83f4 /src/lib/eldbus
parent71ec6a95b8bc9fdde24271ccd2185c90f5b30367 (diff)
eldbus: null checking before using the pointer
Diffstat (limited to 'src/lib/eldbus')
-rw-r--r--src/lib/eldbus/eldbus_message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/eldbus/eldbus_message.c b/src/lib/eldbus/eldbus_message.c
index f18196c6c9..2464d0e078 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)
886 ELDBUS_MESSAGE_CHECK_RETVAL(msg, NULL); 886 ELDBUS_MESSAGE_CHECK_RETVAL(msg, NULL);
887 887
888 reply = eldbus_message_new(EINA_TRUE); 888 reply = eldbus_message_new(EINA_TRUE);
889 EINA_SAFETY_ON_NULL_RETURN_VAL(reply, NULL);
890
889 reply->dbus_msg = dbus_message_new_method_return(msg->dbus_msg); 891 reply->dbus_msg = dbus_message_new_method_return(msg->dbus_msg);
890 892
891 dbus_message_iter_init_append(reply->dbus_msg, 893 dbus_message_iter_init_append(reply->dbus_msg,