Change-Id: I749f409da0bc04d8533772812d223a0d17809136
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
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);
static int __ctsvc_server_check_table()
{
int ret;
- sqlite3 *db;
+ sqlite3 *db = NULL;
char query[CTS_SQL_MAX_LEN] = {0};
cts_stmt stmt = NULL;