Don't clear bindings of an erroneous sqlite statement

This is not safe and can cause a crash.
This commit is contained in:
Christian Dywan 2010-06-22 23:15:25 +02:00
parent 72756ed3f1
commit eec5359cf5

View file

@ -3760,6 +3760,7 @@ _action_location_submit_uri (GtkAction* action,
g_printerr (_("Failed to insert new history item: %s\n"),
sqlite3_errmsg (db));
sqlite3_reset (statement);
if (sqlite3_step (statement) == SQLITE_DONE)
sqlite3_clear_bindings (statement);
#endif