]> git.sur5r.net Git - glabels/commitdiff
Fixes crash in gl_text_node_lines_expand() when line contains no nodes.
authorJim Evins <evins@snaught.com>
Sun, 22 Dec 2002 19:26:10 +0000 (19:26 +0000)
committerJim Evins <evins@snaught.com>
Sun, 22 Dec 2002 19:26:10 +0000 (19:26 +0000)
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@216 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/src/text-node.c

index cdf874bd8c3ba9bbe7bbb073b959962d11df1789..d50398e2f618e0bab6402a9487a31e51e5b9df60 100644 (file)
@@ -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;