From 28fc6be3bfd73d8f683526a7dcc332655b704cf2 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 17 Jan 2020 10:09:55 +0900 Subject: [PATCH] Fix issue detected by static analysis tool Uninitialized scalar variable (UNINIT) uninit_use_in_call: Using uninitialized value item_data. Field item_data.gen_item is uninitialized when calling push_back. Change-Id: I0fd263984fb2ba937486df62b5ecf09872d21d31 Signed-off-by: Jihoon Kim --- im_setting_list/input_method_setting_list_ui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/im_setting_list/input_method_setting_list_ui.cpp b/im_setting_list/input_method_setting_list_ui.cpp index a4d60a4..6d66085 100644 --- a/im_setting_list/input_method_setting_list_ui.cpp +++ b/im_setting_list/input_method_setting_list_ui.cpp @@ -827,6 +827,7 @@ static void im_setting_list_add_ime(void *data) { int info_list_size = g_ime_info_list.size(); for (int i = 0; i < info_list_size; i++) { gen_item_data item_data; + item_data.gen_item = NULL; if (g_ime_info_list[i].is_preinstalled || (i == g_active_ime_index)) { item_data.chk_status = EINA_TRUE; -- 2.7.4