]> spindle.queued.net Git - midori/commitdiff
Protect against unset meta string folder
authorChristian Dywan <christian@twotoasts.de>
Mon, 29 Nov 2010 21:58:03 +0000 (22:58 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 30 Nov 2010 17:15:33 +0000 (18:15 +0100)
panels/midori-bookmarks.c

index 95b14c9ae2178c3e3525d4199b20054be0699306..d2e34c4bf9cd3fcf0e81fba07ba99c1ae05748d2 100644 (file)
@@ -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