# HG changeset patch # User Sadrul Habib Chowdhury # Date 1169782779 0 # Node ID 16cd6fd20e6f500dee3323143c5b532a77f81160 # Parent 805c7d4dea2696566dd1f245c51546cd1015eb2a Prevent tree from crashing when NULL text is added in some column. diff -r 805c7d4dea26 -r 16cd6fd20e6f console/libgnt/gnttree.c --- a/console/libgnt/gnttree.c Fri Jan 26 03:00:46 2007 +0000 +++ b/console/libgnt/gnttree.c Fri Jan 26 03:39:39 2007 +0000 @@ -1382,7 +1382,7 @@ { GntTreeCol *col = g_new0(GntTreeCol, 1); col->span = 1; - col->text = g_strdup(iter->data); + col->text = g_strdup(iter->data ? iter->data : ""); row->columns = g_list_append(row->columns, col); }