[nemiver] Fix a thinko spotted by GCC 6.2.1



commit dc38dab23e4e10f4abd111e3c7e1357757110eca
Author: Dodji Seketeli <dodji seketeli org>
Date:   Wed Nov 2 14:56:10 2016 +0100

    Fix a thinko spotted by GCC 6.2.1
    
    In search_next_element_node in src/common/nmv-libxml-utils.cc we are
    comparing a boolean to zero.  It turned out it wasn't that boolean
    that we wanted to compare.  Oops.
    
        * src/common/nmv-libxml-utils.cc (search_next_element_node): Fix
        thinko.
    
    Signed-off-by: Dodji Seketeli <dodji seketeli org>

 src/common/nmv-libxml-utils.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/common/nmv-libxml-utils.cc b/src/common/nmv-libxml-utils.cc
index a9fda90..c7de90f 100644
--- a/src/common/nmv-libxml-utils.cc
+++ b/src/common/nmv-libxml-utils.cc
@@ -118,7 +118,7 @@ search_next_element_node (XMLTextReaderSafePtr &a_reader,
         status = xmlTextReaderRead (a_reader.get ());
         if (status == 0) {
             return false;
-        } else if (result < 0) {
+        } else if (status < 0) {
             THROW ("parsing error");
         }
         node_type = static_cast<xmlReaderTypes>


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