From c44d66c1724ddad0a32daf11fd6334b992b8c06b Mon Sep 17 00:00:00 2001 From: Jongkyu Koo Date: Thu, 8 Jun 2017 13:24:00 +0900 Subject: [PATCH] fix svace issue Change-Id: I749f409da0bc04d8533772812d223a0d17809136 Signed-off-by: Jongkyu Koo --- server/ctsvc_schema_recovery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/ctsvc_schema_recovery.c b/server/ctsvc_schema_recovery.c index 60b6cc6..17aa3d8 100644 --- a/server/ctsvc_schema_recovery.c +++ b/server/ctsvc_schema_recovery.c @@ -48,8 +48,8 @@ static inline int __ctsvc_server_check_db_file(void) static inline int __ctsvc_server_remake_db_file() { int ret; - char *errmsg; - sqlite3 *db; + char *errmsg = NULL; + sqlite3 *db = NULL; ret = ctsvc_server_db_open(&db); RETVM_IF(CONTACTS_ERROR_NONE != ret, ret, "ctsvc_server_db_open() Fail(%d)", ret); @@ -70,7 +70,7 @@ static inline int __ctsvc_server_remake_db_file() static int __ctsvc_server_check_table() { int ret; - sqlite3 *db; + sqlite3 *db = NULL; char query[CTS_SQL_MAX_LEN] = {0}; cts_stmt stmt = NULL; -- 2.7.4