"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");