From: Ondrej H. <tan...@us...> - 2005-03-05 18:20:00
|
Update of /cvsroot/planeshift/planeshift/src/common/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22070/src/common/util Modified Files: psxmlparser.cpp Log Message: Added check of parser abilities Index: psxmlparser.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/util/psxmlparser.cpp,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** psxmlparser.cpp 2 Mar 2005 20:48:40 -0000 1.33 --- psxmlparser.cpp 5 Mar 2005 18:19:49 -0000 1.34 *************** *** 395,398 **** --- 395,400 ---- { targetChild = target->CreateNodeBefore(child->GetType()); + if (targetChild == NULL) + assert(!"failed to create XML node, you are probably using wrong XML parser (xmlread instead of xmltiny)"); targetChild->SetValue(child->GetValue()); } |