Intialize function pointer to avoid invalid access 17/258617/2
authorSuyeon Hwang <stom.hwang@samsung.com>
Fri, 21 May 2021 06:15:30 +0000 (15:15 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Fri, 21 May 2021 07:24:43 +0000 (16:24 +0900)
Change-Id: I33b539e6735b52bfd42ea7859f1a5c7984150b21
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/ttsd_data.cpp

index 8e675f7..c61cf45 100644 (file)
@@ -831,7 +831,7 @@ int ttsd_data_foreach_clients(ttsd_data_get_client_cb callback, void* user_data)
 
        g_app_state_mutex.lock();
        for (int i = 0; i < vsize; i++) {
-               app_data_s app;
+               app_data_s app = {0, };
                app.pid = g_app_list[i].pid;
                app.uid = g_app_list[i].uid;
                app.utt_id_stopped = 0;