From 17e2783c6c78bf832480297f83a3cef0f0e1a79c Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Fri, 29 Sep 2017 11:57:06 +0900 Subject: [PATCH] elm atspi - fix checking return of eldbus_message_iter_arguments_get fix coverity CID 1353590 --- src/lib/elementary/elm_atspi_bridge.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/elm_atspi_bridge.c b/src/lib/elementary/elm_atspi_bridge.c index 1cb104a..761d7fb 100644 --- a/src/lib/elementary/elm_atspi_bridge.c +++ b/src/lib/elementary/elm_atspi_bridge.c @@ -3783,8 +3783,9 @@ _registered_listeners_get(void *data, const Eldbus_Message *msg, Eldbus_Pending } while (eldbus_message_iter_get_and_next(iter, 'r', &siter)) { - eldbus_message_iter_arguments_get(siter, "ss", &bus, &event); - _set_broadcast_flag(event, data); + if (!eldbus_message_iter_arguments_get(siter, "ss", &bus, &event)) + ERR("Cannot get bus and event from registered listener"); + else _set_broadcast_flag(event, data); } if (!pd->connected) -- 2.7.4