Initialize type of app data 26/272926/1 submit/tizen/20220328.060712
authorwn.jang <wn.jang@samsung.com>
Mon, 28 Mar 2022 05:34:46 +0000 (14:34 +0900)
committerwn.jang <wn.jang@samsung.com>
Mon, 28 Mar 2022 05:35:02 +0000 (14:35 +0900)
This issue was detected by static analysis tool.

Change-Id: I4b1d4dc81d94f3bd6fa492f680697a7670ed79f8

server/ttsd_data.cpp

index 4e37cd7..658387f 100644 (file)
@@ -166,11 +166,12 @@ int ttsd_data_new_client(int pid, unsigned int uid)
        app.uid = uid;
        app.utt_id_stopped = 0;
        app.state = APP_STATE_READY;
+       app.type = TTS_APP_PLAY_TYPE_SYNTH;
        app.mode = TTSD_MODE_DEFAULT;
+       app.result_event = TTSE_RESULT_EVENT_FAIL;
        app.ipc_method = TTS_IPC_METHOD_UNDEFINED;
        app.credential = nullptr;
        app.paused_data_existing = false;
-       app.result_event = TTSE_RESULT_EVENT_FAIL;
 
        g_app_list.push_back(app);