sticker/Database: always invoke sqlite3_reset() and sqlite3_clear_bindings()

This commit is contained in:
Max Kellermann 2014-12-12 21:23:22 +01:00
parent 12b4a666bc
commit 80ddf4aecf
1 changed files with 4 additions and 4 deletions

View File

@ -251,14 +251,14 @@ sticker_insert_value(const char *type, const char *uri,
if (!BindAll(stmt, type, uri, name, value))
return false;
if (!ExecuteCommand(stmt))
return false;
bool success = ExecuteCommand(stmt);
sqlite3_reset(stmt);
sqlite3_clear_bindings(stmt);
idle_add(IDLE_STICKER);
return true;
if (success)
idle_add(IDLE_STICKER);
return success;
}
bool