Skip to content
Snippets Groups Projects
Commit 2ffe793f authored by Andrea Bulgarelli's avatar Andrea Bulgarelli
Browse files

word PartOfPacket::getFieldIndex(string fieldname) compare on strings issue

parent 433cec75
No related branches found
No related tags found
No related merge requests found
...@@ -726,7 +726,7 @@ word PartOfPacket::getFieldIndex(string fieldname) { ...@@ -726,7 +726,7 @@ word PartOfPacket::getFieldIndex(string fieldname) {
for(word i=0; i<numberOfFields; i++) { for(word i=0; i<numberOfFields; i++) {
Field* f = fields[i]; Field* f = fields[i];
string fname = f->getName(); string fname = f->getName();
if(fieldname == fname) if(fieldname.compare(fname) == 0)
return i; return i;
} }
string errorStr = "getFieldIndex("+fieldname+") error: no field found in section '"+popName+"'"; string errorStr = "getFieldIndex("+fieldname+") error: no field found in section '"+popName+"'";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment