From 26ef752a7bc6e9bd7546c95c1639e8d967564c47 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Sun, 22 Dec 2002 19:26:10 +0000 Subject: [PATCH] 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 --- glabels2/src/text-node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5