gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/server xml.cpp


From: Markus Gothe
Subject: [Gnash-commit] gnash/server xml.cpp
Date: Fri, 29 Sep 2006 14:03:46 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Markus Gothe <nihilus>  06/09/29 14:03:46

Modified files:
        server         : xml.cpp 

Log message:
        Minor clean-up.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/xml.cpp?cvsroot=gnash&r1=1.24&r2=1.25

Patches:
Index: xml.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/xml.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- xml.cpp     6 Aug 2006 02:00:54 -0000       1.24
+++ xml.cpp     29 Sep 2006 14:03:46 -0000      1.25
@@ -321,8 +321,6 @@
 {
     GNASH_REPORT_FUNCTION;
 
-    bool        ret = true;
-
     log_msg("Parse XML from memory: %s\n", xml_in.c_str());
 
     if (xml_in.size() == 0) {
@@ -340,7 +338,7 @@
 
     reader = xmlReaderForMemory(xml_in.c_str(), xml_in.size(), NULL, NULL, 0);
     if (reader != NULL) {
-        ret = true;
+       bool ret = true;
         while (ret) {
             ret = xmlTextReaderRead(reader);
             node = processNode(reader, node);
@@ -357,6 +355,9 @@
     xmlCleanupParser();
     return true;
 #else
+
+       bool ret = true;
+
 #ifdef USE_DOM
     xmlInitParser();
   
@@ -373,7 +374,6 @@
 #ifndef USE_DMALLOC
     //dump_memory_stats(__FUNCTION__, __LINE__, "after xmlParseMemory");
 #endif
-
     return ret;
 #endif
   




reply via email to

[Prev in Thread] Current Thread [Next in Thread]