Fix pointer checking condition and owner of config file 60/291660/2
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 20 Apr 2023 02:29:09 +0000 (11:29 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 20 Apr 2023 05:21:24 +0000 (14:21 +0900)
commiteb093d22c2b33d8bd60e542822501393e2e212a3
tree31ba536130b2f71466118c605647ba522a736f43
parenta163c3e36175dda2bb507f338e50894969a5204d
Fix pointer checking condition and owner of config file

- Issue:
tts_setting_set_voice() does not set voice properly.

- Solution:
Previous code validates the voice with invalid condition. So, the
function returns error even if the voice is valid. Meanwhile, the app
can not write the config file because of the owner of the file. To
resolve these issues, this patch fixes the checking condition and owner
of config file. Through this patch, the function will properly set the
voice.

 To resolve this
issue, this patch fixes the condition as a right way.

Change-Id: I01ac1fd09edb9a10ea365c2376ccf3d6d7a9c4f1
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/tts_config_mgr.c
packaging/tts.spec