From cecdb15692318e2ca2cdba45c9d5870aa6ac8dc4 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 16 Oct 2003 14:53:14 +0000 Subject: [PATCH] Fix a problem which was introduced in the previous patch --- simgear/props/props_io.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simgear/props/props_io.cxx b/simgear/props/props_io.cxx index 92781ea6..d6b38c62 100644 --- a/simgear/props/props_io.cxx +++ b/simgear/props/props_io.cxx @@ -117,9 +117,9 @@ checkFlag (const char * flag, bool defaultState = true) { if (flag == 0) return defaultState; - else if (flag == "y") + else if (!strcmp(flag, "y")) return true; - else if (flag == "n") + else if (!strcmp(flag, "n")) return false; else { string message = "Unrecognized flag value '"; @@ -137,7 +137,7 @@ PropsVisitor::startElement (const char * name, const XMLAttributes &atts) const char * attval; if (_level == 0) { - if (name != "PropertyList") { + if (strcmp(name, "PropertyList")) { string message = "Root element name is "; message += name; message += "; expected PropertyList"; -- 2.39.5