# HG changeset patch # User Richard Nelson # Date 1201754404 0 # Node ID 782df0fd9e5eddac9d282244edecdb7cba0ca96f # Parent cbf64b6f5d4af77f176203fe5ab6738b0e7b919d Fix a crash when pressing backspace at a menu diff -r cbf64b6f5d4a -r 782df0fd9e5e finch/libgnt/gnttree.c --- a/finch/libgnt/gnttree.c Thu Jan 31 04:37:40 2008 +0000 +++ b/finch/libgnt/gnttree.c Thu Jan 31 04:40:04 2008 +0000 @@ -684,7 +684,7 @@ GntTreeRow *row = tree->current; int dist; - if (!row->parent || SEARCHING(tree)) + if (!row || !row->parent || SEARCHING(tree)) return FALSE; tree->current = row->parent;