From: Jim Evins Date: Sun, 22 Dec 2002 19:26:10 +0000 (+0000) Subject: Fixes crash in gl_text_node_lines_expand() when line contains no nodes. X-Git-Tag: glabels-2_3_0~671 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=26ef752a7bc6e9bd7546c95c1639e8d967564c47;p=glabels Fixes crash in gl_text_node_lines_expand() when line contains no nodes. git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@216 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- diff --git a/glabels2/src/text-node.c b/glabels2/src/text-node.c index cdf874bd..d50398e2 100644 --- a/glabels2/src/text-node.c +++ b/glabels2/src/text-node.c @@ -185,7 +185,7 @@ gl_text_node_lines_expand (GList *lines, /* special case: something like ${ADDRESS2} = "" on line by itself. */ /* in such circumstances ignore the line completely. */ p_node = (GList *)p_line->data; - if (p_node->next == NULL) { + if (p_node && p_node->next == NULL) { text_node = (glTextNode *) p_node->data; if ( is_empty_field (text_node, record) ) { continue;