Initialize variable before getting engine 01/167101/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 15 Jan 2018 10:37:44 +0000 (19:37 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 15 Jan 2018 10:37:44 +0000 (19:37 +0900)
Change-Id: Ifc9171e6eda6171ede164698f32c3646423c90aa
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
test/test_main.c

index 5eef8d3..eafee9b 100644 (file)
@@ -109,7 +109,7 @@ static Eina_Bool __get_engine_list(void *data)
                SLOG(LOG_ERROR, TAG_STT_TEST, "Fail to get engine list");
        }
 
-       char *cur_engine;
+       char *cur_engine = NULL;
        SLOG(LOG_DEBUG, TAG_STT_TEST, "STT get engine");
        ret = stt_file_get_engine(&cur_engine);
        if (STT_FILE_ERROR_NONE != ret) {