add return check for eldbus 13/153713/3
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 29 Sep 2017 07:35:41 +0000 (16:35 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 11 Oct 2017 08:26:35 +0000 (08:26 +0000)
Change-Id: I366df41ee38dc29ab5a9448e378e4a2064bac7cd

src/lib/elm_app_client.c
src/lib/elm_atspi_bridge.c

index 5c4bd31..f3299f0 100644 (file)
@@ -28,8 +28,12 @@ _sub_path_process(Elm_App_Client *eo, Eldbus_Message_Iter *obj_iter, Elm_App_Cli
         Eldbus_Message_Iter *array_props;
         Elm_App_Client_View *view;
 
-        eldbus_message_iter_arguments_get(iface, "sa{sv}", &iface_name,
-                                          &array_props);
+        if (!eldbus_message_iter_arguments_get(iface, "sa{sv}", &iface_name, &array_props))
+          {
+             ERR("Unable to get message arguments");
+             continue;
+          }
+
         if (strcmp(iface_name, "org.enlightenment.ApplicationView1"))
           continue;
 
index 9dfecc8..821a50c 100644 (file)
@@ -5409,7 +5409,11 @@ _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);
+        if (!eldbus_message_iter_arguments_get(siter, "ss", &bus, &event))
+          {
+             ERR("Unable to get message arguments");
+             continue;
+          }
         _set_broadcast_flag(event, data);
      }