Fix the condition for checking dbus data type of uid 77/271577/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 23 Feb 2022 05:45:59 +0000 (14:45 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Wed, 23 Feb 2022 05:46:01 +0000 (14:46 +0900)
Type of uid is unsigned integer, but current code checks whether the uid type is signed integer.
By this behavior, the result from server is not received.

This patch changes the condition for checking dbus data type of uid from int32 to uint32.
By this change, the result is properly delivered to client application by the callback.

Change-Id: I0b0e75fcc5f4903dd5085fa208b21b0e5e30f530
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
client/stt_dbus.c

index 3d569a4..b5d157a 100644 (file)
@@ -489,7 +489,7 @@ static Eina_Bool listener_event_callback(void* data, Ecore_Fd_Handler *fd_handle
                        dbus_message_iter_init(msg, &args);
 
                        /* Get result */
-                       if (DBUS_TYPE_INT32 == dbus_message_iter_get_arg_type(&args)) {
+                       if (DBUS_TYPE_UINT32 == dbus_message_iter_get_arg_type(&args)) {
                                dbus_message_iter_get_basic(&args, &uid);
                                dbus_message_iter_next(&args);
                        }