From 30cc8b06947c7f88d913842ddac61220cc1ee46b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Tue, 18 Jan 2011 18:19:22 +0100 Subject: [PATCH] Bail out with a warning when adding invalid folder --- midori/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/midori/main.c b/midori/main.c index 31276b01..cd0b2ef0 100644 --- a/midori/main.c +++ b/midori/main.c @@ -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")); } -- 2.39.5