[Xfce4-commits] <midori:master> Issue warning if adding to history fails

Christian Dywan noreply at xfce.org
Fri Dec 24 16:46:01 CET 2010


Updating branch refs/heads/master
         to 448e119b0b5eed88ee24faa0d545fa6004e7ce92 (commit)
       from 7b9781666af25c606d1961724de54f5b3517c1da (commit)

commit 448e119b0b5eed88ee24faa0d545fa6004e7ce92
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Dec 24 16:44:49 2010 +0100

    Issue warning if adding to history fails

 midori/midori-browser.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 02a288e..c085e25 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -471,6 +471,7 @@ midori_browser_update_history_title (MidoriBrowser* browser,
     g_return_if_fail (katze_item_get_uri (item) != NULL);
 
     db = g_object_get_data (G_OBJECT (browser->history), "db");
+    g_return_if_fail (db != NULL);
     if (!stmt)
     {
         const gchar* sqlcmd;
@@ -5327,6 +5328,7 @@ midori_browser_new_history_item (MidoriBrowser* browser,
     day = sokoke_time_t_to_julian (&now);
 
     db = g_object_get_data (G_OBJECT (browser->history), "db");
+    g_return_if_fail (db != NULL);
     if (!stmt)
     {
         const gchar* sqlcmd;



More information about the Xfce4-commits mailing list