From e68598ebb99de6cf4bc9748b736cf5e271f5d81b Mon Sep 17 00:00:00 2001 From: fgerlits Date: Sat, 5 Feb 2005 10:01:56 +0000 Subject: [PATCH] added (unnecesary) initialization of pointer to make the compiler happy --- livesupport/modules/core/src/XmlRpcToolsTest.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/livesupport/modules/core/src/XmlRpcToolsTest.cxx b/livesupport/modules/core/src/XmlRpcToolsTest.cxx index c4109d41f..6faec94f5 100644 --- a/livesupport/modules/core/src/XmlRpcToolsTest.cxx +++ b/livesupport/modules/core/src/XmlRpcToolsTest.cxx @@ -22,7 +22,7 @@ Author : $Author: fgerlits $ - Version : $Revision: 1.3 $ + Version : $Revision: 1.4 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/src/XmlRpcToolsTest.cxx,v $ ------------------------------------------------------------------------------*/ @@ -141,9 +141,10 @@ XmlRpcToolsTest :: firstTest(void) xmlpp::DomParser parser; CPPUNIT_ASSERT_NO_THROW(parser.parse_memory(std::string( xmlRpcPlaylist["playlist"] ))); - xmlpp::Element* configElement; + xmlpp::Element* configElement = 0; CPPUNIT_ASSERT_NO_THROW(configElement = parser.get_document() ->get_root_node()); + CPPUNIT_ASSERT(configElement); CPPUNIT_ASSERT_NO_THROW(copyOfPlaylist->configure(*configElement)); CPPUNIT_ASSERT(*copyOfPlaylist->getId() == *playlist->getId());