Fix a problem which was introduced in the previous patch
This commit is contained in:
@@ -117,9 +117,9 @@ checkFlag (const char * flag, bool defaultState = true)
|
|||||||
{
|
{
|
||||||
if (flag == 0)
|
if (flag == 0)
|
||||||
return defaultState;
|
return defaultState;
|
||||||
else if (flag == "y")
|
else if (!strcmp(flag, "y"))
|
||||||
return true;
|
return true;
|
||||||
else if (flag == "n")
|
else if (!strcmp(flag, "n"))
|
||||||
return false;
|
return false;
|
||||||
else {
|
else {
|
||||||
string message = "Unrecognized flag value '";
|
string message = "Unrecognized flag value '";
|
||||||
@@ -137,7 +137,7 @@ PropsVisitor::startElement (const char * name, const XMLAttributes &atts)
|
|||||||
const char * attval;
|
const char * attval;
|
||||||
|
|
||||||
if (_level == 0) {
|
if (_level == 0) {
|
||||||
if (name != "PropertyList") {
|
if (strcmp(name, "PropertyList")) {
|
||||||
string message = "Root element name is ";
|
string message = "Root element name is ";
|
||||||
message += name;
|
message += name;
|
||||||
message += "; expected PropertyList";
|
message += "; expected PropertyList";
|
||||||
|
|||||||
Reference in New Issue
Block a user