diff finch/libgnt/gnttree.c @ 22233:782df0fd9e5e

Fix a crash when pressing backspace at a menu
author Richard Nelson <wabz@pidgin.im>
date Thu, 31 Jan 2008 04:40:04 +0000
parents 4165bcd57486
children 0ba0f2804299
line wrap: on
line diff
--- 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;