mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
d2b8088cd8
commit
9c8deef477
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue