Commit 80ddf4ae authored by Max Kellermann's avatar Max Kellermann

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

parent 12b4a666
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment