From 0900c588d93562d18ba0bcd674d7475a9ae4f626 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Stawicki?= Date: Mon, 19 Mar 2018 18:21:29 +0100 Subject: [PATCH] [prevent][25347] Fix for unchecked return value Change-Id: I49003a92b10a749fafb64a4c6e422ac0e64fa0fc --- atk-adaptor/bridge.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c index d39a8e9..919c86b 100644 --- a/atk-adaptor/bridge.c +++ b/atk-adaptor/bridge.c @@ -307,6 +307,7 @@ get_registered_event_listeners (SpiBridge *app) { DBusMessage *message; DBusPendingCall *pending = NULL; + dbus_bool_t result; message = dbus_message_new_method_call (SPI_DBUS_NAME_REGISTRY, ATSPI_DBUS_PATH_REGISTRY, @@ -315,9 +316,9 @@ get_registered_event_listeners (SpiBridge *app) if (!message) return; - dbus_connection_send_with_reply (app->bus, message, &pending, -1); + result = dbus_connection_send_with_reply (app->bus, message, &pending, -1); dbus_message_unref (message); - if (!pending) + if (!result || !pending) { spi_global_app_data->events_initialized = TRUE; return; @@ -331,9 +332,9 @@ get_registered_event_listeners (SpiBridge *app) if (!message) return; pending = NULL; - dbus_connection_send_with_reply (app->bus, message, &pending, -1); + result = dbus_connection_send_with_reply (app->bus, message, &pending, -1); dbus_message_unref (message); - if (!pending) + if (!result || !pending) { spi_global_app_data->events_initialized = TRUE; return; @@ -347,9 +348,9 @@ get_registered_event_listeners (SpiBridge *app) if (!message) return; pending = NULL; - dbus_connection_send_with_reply (app->bus, message, &pending, -1); + result = dbus_connection_send_with_reply (app->bus, message, &pending, -1); dbus_message_unref (message); - if (!pending) + if (!result || !pending) { spi_global_app_data->events_initialized = TRUE; return; -- 2.34.1