qulogic/libgnt

88d799ecf9d6
Parents fe1018b3b0f0
Children db430da8059b
This is supposed to return the key, not the row itself.
  • +1 -1
    gnttree.c
  • --- a/gnttree.c Tue Jan 22 07:28:11 2008 +0000
    +++ b/gnttree.c Wed Jan 23 00:54:25 2008 +0000
    @@ -1844,6 +1844,6 @@
    gpointer gnt_tree_get_parent_key(GntTree *tree, gpointer key)
    {
    GntTreeRow *row = g_hash_table_lookup(tree->hash, key);
    - return row ? row->parent : NULL;
    + return (row && row->parent) ? row->parent->key : NULL;
    }