From 3a2ad2d2422198d34b507554559e1eb9f2078887 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Tue, 3 Jan 2012 21:34:45 +0100 Subject: [PATCH] Don't reset NULL stmt in location popup Fixes: https://bugs.launchpad.net/bugs/910353 --- midori/midori-locationaction.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) { -- 2.39.5