Don't reset NULL stmt in location popup
Fixes: https://bugs.launchpad.net/bugs/910353
This commit is contained in:
parent
98c87e7ca9
commit
3a2ad2d242
1 changed files with 6 additions and 2 deletions
|
@ -518,8 +518,12 @@ midori_location_action_popup_timeout_cb (gpointer data)
|
|||
matches++;
|
||||
result = sqlite3_step (stmt);
|
||||
}
|
||||
sqlite3_reset (stmt);
|
||||
sqlite3_clear_bindings (stmt);
|
||||
|
||||
if (stmt)
|
||||
{
|
||||
sqlite3_reset (stmt);
|
||||
sqlite3_clear_bindings (stmt);
|
||||
}
|
||||
|
||||
if (action->search_engines)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue