From: ehofman Date: Thu, 16 Oct 2003 14:53:14 +0000 (+0000) Subject: Fix a problem which was introduced in the previous patch X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cecdb15692318e2ca2cdba45c9d5870aa6ac8dc4;p=simgear.git Fix a problem which was introduced in the previous patch --- 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";