From: Paweł Stawicki Date: Fri, 16 Mar 2018 16:01:03 +0000 (+0100) Subject: [prevent][36018] Fix for unchecked return value X-Git-Tag: accepted/tizen/unified/20180405.005254~7 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fat-spi2-core.git;a=commitdiff_plain;h=60048931e054a39120edba1cb6531d72e803be60 [prevent][36018] Fix for unchecked return value Change-Id: I79eba8a9907b44a0ea349eaab0ab2704284a200f --- diff --git a/registryd/deviceeventcontroller.c b/registryd/deviceeventcontroller.c index a7d3769..fedf927 100644 --- a/registryd/deviceeventcontroller.c +++ b/registryd/deviceeventcontroller.c @@ -933,6 +933,7 @@ send_and_allow_reentry (DBusConnection *bus, DBusMessage *message, int timeout, { const char *dest = dbus_message_get_destination (message); GSList *l; + dbus_bool_t result; gchar *bus_name_dup; dbus_message_ref (message); dbus_pending_call_set_notify (pending, reset_hung_process, message, @@ -942,9 +943,9 @@ send_and_allow_reentry (DBusConnection *bus, DBusMessage *message, int timeout, "Ping"); if (!message) return NULL; - dbus_connection_send_with_reply (bus, message, &pending, -1); + result = dbus_connection_send_with_reply (bus, message, &pending, -1); dbus_message_unref (message); - if (!pending) + if (!result || !pending) return NULL; bus_name_dup = g_strdup (dest); dbus_pending_call_set_notify (pending, reset_hung_process_from_ping,