mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-05 05:05:00 +00:00
xml_lpm_fuzzer: Rename function to better match its nature
This commit is contained in:
parent
e183cb9811
commit
4962f317d2
1 changed files with 3 additions and 3 deletions
|
@ -140,7 +140,7 @@ static void TouchString(const XML_Char* ptr, int len=-1) {
|
|||
}
|
||||
}
|
||||
|
||||
static void TouchChildNodes(XML_Content* content, bool topLevel=true) {
|
||||
static void TouchNodeAndRecurse(XML_Content* content, bool topLevel=true) {
|
||||
switch (content->type) {
|
||||
case XML_CTYPE_EMPTY:
|
||||
case XML_CTYPE_ANY:
|
||||
|
@ -181,7 +181,7 @@ static void TouchChildNodes(XML_Content* content, bool topLevel=true) {
|
|||
|| (content->quant == XML_CQUANT_PLUS));
|
||||
assert(content->name == NULL);
|
||||
for (int i = 0; i < content->numchildren; ++i) {
|
||||
TouchChildNodes(&content->children[i], false);
|
||||
TouchNodeAndRecurse(&content->children[i], false);
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -193,7 +193,7 @@ static void TouchChildNodes(XML_Content* content, bool topLevel=true) {
|
|||
static void XMLCALL
|
||||
ElementDeclHandler(void* userData, const XML_Char* name, XML_Content* model) {
|
||||
TouchString(name);
|
||||
TouchChildNodes(model);
|
||||
TouchNodeAndRecurse(model);
|
||||
XML_FreeContentModel((XML_Parser)userData, model);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue