diff --git a/src/request_body_processor/xml.cc b/src/request_body_processor/xml.cc index b935d612..8114b5b7 100644 --- a/src/request_body_processor/xml.cc +++ b/src/request_body_processor/xml.cc @@ -86,7 +86,7 @@ class MSCSAXHandler { } } if (xml_data->currpath.length() > 0) { - // set an offset to store this is the first item or not -> remove the '.' or not + // set an offset to store whether this is the first item, in order to know whether to remove the '.' int offset = (xml_data->nodes.size() > 1) ? 1 : 0; xml_data->currpath.erase(xml_data->currpath.length() - (name.length()+offset)); }