From cfe35b96ef91282dd97db7b843fd21aa503d3bd9 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 22 Sep 2024 00:44:04 +0200 Subject: [PATCH] tests: Extract constant "storage" in function accumulate_characters .. to avoid potential reader confusion about where the input character data is coming from: variable "storage" says that more clearly and is consistent with multiple other places in the test suite. --- expat/tests/handlers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/expat/tests/handlers.c b/expat/tests/handlers.c index 692f1986..0211985f 100644 --- a/expat/tests/handlers.c +++ b/expat/tests/handlers.c @@ -1908,7 +1908,8 @@ accumulate_start_element(void *userData, const XML_Char *name, void XMLCALL accumulate_characters(void *userData, const XML_Char *s, int len) { - CharData_AppendXMLChars((CharData *)userData, s, len); + CharData *const storage = (CharData *)userData; + CharData_AppendXMLChars(storage, s, len); } void XMLCALL