From: Suyeon Hwang Date: Wed, 23 Feb 2022 05:45:59 +0000 (+0900) Subject: Fix the condition for checking dbus data type of uid X-Git-Tag: accepted/tizen/unified/20220225.151911~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40cf20fee7508b65b20c03ab584b76d238a1b032;p=platform%2Fcore%2Fuifw%2Fstt.git Fix the condition for checking dbus data type of uid 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 --- diff --git a/client/stt_dbus.c b/client/stt_dbus.c index 3d569a4..b5d157a 100644 --- a/client/stt_dbus.c +++ b/client/stt_dbus.c @@ -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); }