Commit 3755a576 authored by Christian Hergert's avatar Christian Hergert

tree: fix possible NULL dereference

parent 063fe8f5
......@@ -927,11 +927,14 @@ _dzl_tree_get_drop_node (DzlTree *self,
g_autoptr(DzlTreeNode) node = NULL;
GtkTreeModel *model;
GtkTreeIter iter;
DzlTreeDropPosition dummy_pos;
g_return_val_if_fail (DZL_IS_TREE (self), NULL);
if (pos != NULL)
*pos = 0;
if (pos == NULL)
pos = &dummy_pos;
*pos = 0;
/* We can't do anything if we don't have a path */
if (priv->last_drop_path == NULL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment