projects
/
platform
/
core
/
uifw
/
voice-control.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23a754f
)
Remove vc-config in RW when xmlParseFile is failed
12/198212/1
author
sooyeon.kim
<sooyeon.kim@samsung.com>
Fri, 18 Jan 2019 01:44:32 +0000
(10:44 +0900)
committer
Sooyeon Kim
<sooyeon.kim@samsung.com>
Tue, 22 Jan 2019 09:39:31 +0000
(09:39 +0000)
Change-Id: Ib3c3b3d58c5bfa05936525091a3b345051f63990
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit
55868619bb9c5903b61707c52a0586e604fe16aa
)
common/vc_config_parser.c
patch
|
blob
|
history
diff --git
a/common/vc_config_parser.c
b/common/vc_config_parser.c
index
a862549
..
4c991f3
100644
(file)
--- a/
common/vc_config_parser.c
+++ b/
common/vc_config_parser.c
@@
-322,6
+322,9
@@
int vc_parser_load_config(vc_config_s** config_info)
if (VC_RETRY_COUNT == retry_count) {
SLOG(LOG_ERROR, vc_config_tag(), "[ERROR] Fail to parse file error : %s", VC_CONFIG);
+ SLOG(LOG_ERROR, vc_config_tag(), "[ERROR] Remove the file");
+ remove(VC_CONFIG);
+
doc = xmlParseFile(VC_DEFAULT_CONFIG);
if (NULL == doc) {
SLOG(LOG_ERROR, vc_config_tag(), "[ERROR] Fail to parse file error : %s", VC_DEFAULT_CONFIG);