Fix issue that detected by static analysis tool
[platform/core/uifw/inputdelegator.git] / 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");