diff finch/libgnt/gnttree.c @ 16283:5187395d6b78

Debug is not necessary anymore, and don't crash on null text.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 20 Apr 2007 19:14:04 +0000
parents f02e611bdb6b
children 467698ab6bf0
line wrap: on
line diff
--- a/finch/libgnt/gnttree.c	Fri Apr 20 11:53:43 2007 +0000
+++ b/finch/libgnt/gnttree.c	Fri Apr 20 19:14:04 2007 +0000
@@ -1344,7 +1344,7 @@
 	{
 		col = g_list_nth_data(row->columns, colno);
 		g_free(col->text);
-		col->text = g_strdup(text);
+		col->text = g_strdup(text ? text : "");
 
 		if (get_distance(tree->top, row) >= 0 && get_distance(row, tree->bottom) >= 0)
 			redraw_tree(tree);