Fix issue detected by static analysis tool 49/125649/1
authorsungwook79.park <sungwook79.park@samsung.com>
Tue, 18 Apr 2017 08:02:01 +0000 (17:02 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Tue, 18 Apr 2017 08:02:01 +0000 (17:02 +0900)
Change-Id: I89e8044b1a417bdc4e09e877c905526aac2f620a
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
src/w-input-template.cpp

index afe2410..adb23e1 100755 (executable)
@@ -137,7 +137,7 @@ static bool input_template_init_db_util(void)
                        "select sortId, itemId, checked, message from %s",
                        "tmpl_msg_table");
 
-       sqlite3_prepare_v2(g_tt_db, query, strlen(query), &stmt, NULL);
+       ret = sqlite3_prepare_v2(g_tt_db, query, strlen(query), &stmt, NULL);
 
        if (ret != SQLITE_OK) {
                PRINTFUNC(DLOG_ERROR, "Can not get query");