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,7 +3760,8 @@ _action_location_submit_uri (GtkAction* action,
g_printerr (_("Failed to insert new history item: %s\n"),
sqlite3_errmsg (db));
sqlite3_reset (statement);
sqlite3_clear_bindings (statement);
if (sqlite3_step (statement) == SQLITE_DONE)
sqlite3_clear_bindings (statement);
#endif
g_free (keywords);