From: Christian Dywan Date: Mon, 29 Nov 2010 21:58:03 +0000 (+0100) Subject: Protect against unset meta string folder X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57c30ff319cb038ed29d9b3ccf75c1934a0b63ea;p=midori Protect against unset meta string folder --- diff --git a/panels/midori-bookmarks.c b/panels/midori-bookmarks.c index 95b14c9a..d2e34c4b 100644 --- a/panels/midori-bookmarks.c +++ b/panels/midori-bookmarks.c @@ -237,7 +237,7 @@ midori_bookmarks_add_item_cb (KatzeArray* array, { GtkTreeModel* model; model = gtk_tree_view_get_model (GTK_TREE_VIEW (bookmarks->treeview)); - if (!strcmp (katze_item_get_meta_string (item, "folder"), "")) + if (!g_strcmp0 (katze_item_get_meta_string (item, "folder"), "")) gtk_tree_store_insert_with_values (GTK_TREE_STORE (model), NULL, NULL, G_MAXINT, 0, item, -1); else