Trivial: un-static function-local buffer

In visit_on_node() in core/parse-xml.c the name is extracted into
a static buffer. There seems to be no need for this being static,
as the name is only passed to the entry() function which (hopefully)
does not store a reference to the name anywhere.

If it does, this would need a *big* *fat* comment.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-09-21 13:23:36 +02:00 committed by Dirk Hohndel
parent d2b8088cd8
commit 9c8deef477

View file

@ -1451,7 +1451,7 @@ static const char *nodename(xmlNode *node, char *buf, int len)
static bool visit_one_node(xmlNode *node)
{
xmlChar *content;
static char buffer[MAXNAME];
char buffer[MAXNAME];
const char *name;
content = node->content;