From: Alexander Butenko Date: Tue, 3 Jan 2012 20:34:45 +0000 (+0100) Subject: Don't reset NULL stmt in location popup X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a2ad2d2422198d34b507554559e1eb9f2078887;p=midori Don't reset NULL stmt in location popup Fixes: https://bugs.launchpad.net/bugs/910353 --- diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index 47d2e3d0..64e652b4 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -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) {