Update of /cvsroot/libufo/ufo-0.5/src/xml
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv15196/src/xml
Modified Files:
uxul.cpp
Log Message:
Added NULL pointer check (thanks Regis).
Index: uxul.cpp
===================================================================
RCS file: /cvsroot/libufo/ufo-0.5/src/xml/uxul.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** uxul.cpp 24 Oct 2005 16:00:55 -0000 1.9
--- uxul.cpp 13 May 2007 12:15:04 -0000 1.10
***************
*** 616,620 ****
do {
node = m_doc->IterateChildren(node);
! unknown = node->ToUnknown();
} while (!unknown && node);
if (unknown) {
--- 616,622 ----
do {
node = m_doc->IterateChildren(node);
! if (node != NULL) {
! unknown = node->ToUnknown();
! }
} while (!unknown && node);
if (unknown) {
|