From aea64c4b75929c56bc668f321fb0f34f95fe276e Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Tue, 20 Jun 2017 18:20:15 +0300 Subject: [PATCH] Test parsing result as early as possible --- xmltest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmltest.cpp b/xmltest.cpp index 3ed25b8..91a5626 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -1774,9 +1774,9 @@ int main( int argc, const char ** argv ) // an interesting test case. XMLDocument doc; XMLError err = doc.Parse(xml); - XMLElement* playlist = doc.FirstChildElement("playlist"); - XMLTest("Crash bug parsing", err, XML_SUCCESS); + + XMLElement* playlist = doc.FirstChildElement("playlist"); XMLTest("Crash bug parsing", true, playlist != 0); tinyxml2::XMLElement* entry = playlist->FirstChildElement("entry");