[xml] patch to stop core dump on solaris



Index: valid.c
===================================================================
RCS file: /cvs/gnome/gnome-xml/valid.c,v
retrieving revision 1.68
diff -u -r1.68 valid.c
--- valid.c     2001/04/23 13:41:34     1.68
+++ valid.c     2001/04/26 17:07:20
@@ -3286,7 +3286,7 @@
        return(1);
     }
     if (CONT == NULL) return(-1);
-    if (NODE->type == XML_ENTITY_REF_NODE)
+    if ((NODE != NULL) && (NODE->type == XML_ENTITY_REF_NODE))
        return(-2);
 
     /*

------

This is just a work-around patch. 

        Sander

One day a tortoise will learn to fly
        -- Terry Pratchett, 'Small Gods'






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]