From cd56c3395c657ab668a109090062597790f06b50 Mon Sep 17 00:00:00 2001 From: Suyeon Hwang Date: Thu, 2 Mar 2023 11:43:50 +0900 Subject: [PATCH] Set invalid UID if getting value is failed Change-Id: If06e2122c6a824f65b7485e586597e048d3af6c1 Signed-off-by: Suyeon Hwang --- common/tts_config_mgr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/tts_config_mgr.c b/common/tts_config_mgr.c index cd86207..c39e521 100644 --- a/common/tts_config_mgr.c +++ b/common/tts_config_mgr.c @@ -2169,6 +2169,7 @@ int tts_config_mgr_get_instant_reprepare_client(unsigned int *uid) ret = buxton_value_get_uint32(bux_val, &specified_uid); if (0 != ret) { SLOG(LOG_ERROR, TAG_TTSCONFIG, "[BUXTON2] buxton_value_get_uint32 failed!! (%d)", ret); + *uid = TTS_INVALID_UID; ret = TTS_CONFIG_ERROR_OPERATION_FAILED; } else { SLOG(LOG_DEBUG, TAG_TTSCONFIG, "[BUXTON2] buxton_value_get_uint32: ret(%d), key(%s), uid(%u)", ret, TTS_VCONF_INSTANT_REPREPARE_CLIENT, specified_uid); -- 2.7.4