]> spindle.queued.net Git - midori/commitdiff
Issue warning if adding to history fails
authorChristian Dywan <christian@twotoasts.de>
Fri, 24 Dec 2010 15:44:49 +0000 (16:44 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 24 Dec 2010 15:45:40 +0000 (16:45 +0100)
midori/midori-browser.c

index 02a288e527f7d96db80332f103a0c63f1a2749d6..c085e25754d84f110c455959d6f0f940539a58de 100644 (file)
@@ -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;