Commit 2ffe793f authored by Andrea Bulgarelli's avatar Andrea Bulgarelli
Browse files

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

parent 433cec75
Loading
Loading
Loading
Loading
−742 B (40.8 KiB)

File changed.

No diff preview for this file type.

+1 −1
Original line number Diff line number Diff line
@@ -726,7 +726,7 @@ word PartOfPacket::getFieldIndex(string fieldname) {
	for(word i=0; i<numberOfFields; i++) {
		Field* f = fields[i];
		string fname = f->getName();
		if(fieldname == fname)
		if(fieldname.compare(fname) == 0)
			return i;
	}
	string errorStr = "getFieldIndex("+fieldname+") error: no field found in section '"+popName+"'";