Add comment to explain the behavior

This commit is contained in:
Ervin Hegedus 2025-06-26 21:50:54 +02:00
parent e56d62960e
commit 8879413abf
No known key found for this signature in database
GPG Key ID: 5FA5BC3F5EC41F61

View File

@ -36,7 +36,7 @@ static void msc_xml_on_start_elementns(
xml_parser_state->pathlen += (taglen + 1);
char *newpath = apr_pstrcat(msr->mp, xml_parser_state->currpath, ".", (char *)localname, NULL);
xml_parser_state->currpath = newpath;
xml_parser_state->currpathbufflen += taglen + 1;
xml_parser_state->currpathbufflen += taglen + 1; // +1 for the '.' character here too
int *new_stack_item = (int *)apr_array_push(xml_parser_state->has_child_stack);
*new_stack_item = 0;