]> spindle.queued.net Git - midori/commitdiff
Bail out with a warning when adding invalid folder
authorPaweł Forysiuk <tuxator@o2.pl>
Tue, 18 Jan 2011 17:19:22 +0000 (18:19 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 18 Jan 2011 17:25:12 +0000 (18:25 +0100)
midori/main.c

index 31276b01bdb941ee7f23e73b95b0b59d7a94f857..cd0b2ef047936f40e733dc224075bb045abe827d 100644 (file)
@@ -494,6 +494,9 @@ midori_bookmarks_add_item_cb (KatzeArray* array,
                               KatzeItem*  item,
                               sqlite3*    db)
 {
+    g_return_if_fail (!katze_item_get_name (item)
+                   && !katze_item_get_uri (item));
+
     midori_bookmarks_insert_item_db (db, item,
         katze_item_get_meta_string (item, "folder"));
 }