From: sooyeon.kim Date: Fri, 18 Jan 2019 01:40:58 +0000 (+0900) Subject: Remove stt-config in RW when xmlParseFile is failed X-Git-Tag: accepted/tizen/unified/20190426.054042~3^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fstt.git;a=commitdiff_plain;h=a3a7b4cbbb3d1f0527ee5caa2c3d305598b037ec Remove stt-config in RW when xmlParseFile is failed Change-Id: Iaec7903f9f6540bc8266648c7b4a060c072e7e04 Signed-off-by: sooyeon.kim (cherry picked from commit 276468714b0b8f73a3e557a3f905fb981ac1b81f) --- diff --git a/common/stt_config_parser.c b/common/stt_config_parser.c index 8b45fc3..b179ffc 100644 --- a/common/stt_config_parser.c +++ b/common/stt_config_parser.c @@ -352,6 +352,9 @@ int stt_parser_load_config(stt_config_s** config_info) if (STT_RETRY_COUNT == retry_count) { SLOG(LOG_ERROR, stt_tag(), "[ERROR] Fail to parse file error : %s", STT_CONFIG); + SLOG(LOG_ERROR, stt_tag(), "[ERROR] Remove the file"); + remove(STT_CONFIG); + doc = xmlParseFile(STT_DEFAULT_CONFIG); if (NULL == doc) { SLOG(LOG_ERROR, stt_tag(), "[ERROR] Fail to parse file error : %s", STT_DEFAULT_CONFIG);