All pastes #395845 Raw Edit

small patch

public text v1 · immutable
·published 2007-03-15 10:07 UTC
rendered paste body
Index: src/daemon/xsd/xsdparser/libxmlstream.cpp
===================================================================
--- src/daemon/xsd/xsdparser/libxmlstream.cpp   (revision 642317)
+++ src/daemon/xsd/xsdparser/libxmlstream.cpp   (working copy)
@@ -87,7 +87,7 @@
     }

     node->tagname = (const char*)name;
-    while (*atts) {
+    while ((atts != NULL) && (*atts)) {
         node->atts[(const char*)*atts] = (const char*)*(atts+1);
         atts += 2;
     }