Mercurial > pidgin
changeset 22179:e476e964650c
This is supposed to return the key, not the row itself.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 23 Jan 2008 00:54:25 +0000 |
parents | b0bce463aa4e |
children | 2579d93849bb |
files | finch/libgnt/gnttree.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/libgnt/gnttree.c Tue Jan 22 21:13:11 2008 +0000 +++ b/finch/libgnt/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; }