Protect against unset meta string folder
This commit is contained in:
parent
f9b2a75ae4
commit
57c30ff319
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ midori_bookmarks_add_item_cb (KatzeArray* array,
|
||||||
{
|
{
|
||||||
GtkTreeModel* model;
|
GtkTreeModel* model;
|
||||||
model = gtk_tree_view_get_model (GTK_TREE_VIEW (bookmarks->treeview));
|
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),
|
gtk_tree_store_insert_with_values (GTK_TREE_STORE (model),
|
||||||
NULL, NULL, G_MAXINT, 0, item, -1);
|
NULL, NULL, G_MAXINT, 0, item, -1);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue