Enable Build with GCC 9.2 92/222492/1 accepted/tizen/unified/20200116.124655 submit/tizen/20200115.131102 submit/tizen/20200116.102147
authorAbhimanyu Swami <abhimanyu1.s@samsung.com>
Wed, 15 Jan 2020 10:37:35 +0000 (16:07 +0530)
committerAbhimanyu Swami <abhimanyu1.s@samsung.com>
Wed, 15 Jan 2020 10:37:35 +0000 (16:07 +0530)
Change-Id: Ida150b4e8de0f8cecfd4a7a20cf8de6aadd758c7
Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
server/db/ctsvc_db_sqlite.c

index 28a3379..290464d 100644 (file)
@@ -276,7 +276,6 @@ int ctsvc_query_exec(const char *query)
 {
        int ret;
        cts_stmt stmt = NULL;
-       char *err_msg = NULL;
 
        RETV_IF(NULL == ctsvc_db, CONTACTS_ERROR_DB);
 
@@ -285,9 +284,11 @@ int ctsvc_query_exec(const char *query)
 
        ret = ctsvc_stmt_step(stmt);
        if (CONTACTS_ERROR_NONE != ret)
-               /* LCOV_EXCL_START */
-               if (err_msg != NULL)
-                       ERR("ctsvc_stmt_step() Fail(%d, %s)", ret, err_msg);
+
+       /* LCOV_EXCL_START */
+
+       ERR("ctsvc_stmt_step() Fail(%d)", ret);
+
        /* LCOV_EXCL_STOP */
 
        ctsvc_stmt_finalize(stmt);