Don't clear bindings of an erroneous sqlite statement
This is not safe and can cause a crash.
This commit is contained in:
parent
72756ed3f1
commit
eec5359cf5
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue