Don't reset NULL stmt in location popup

Fixes: https://bugs.launchpad.net/bugs/910353
This commit is contained in:
Alexander Butenko 2012-01-03 21:34:45 +01:00 committed by Christian Dywan
parent 98c87e7ca9
commit 3a2ad2d242

View file

@ -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)
{