summaryrefslogtreecommitdiffstats
path: root/core/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-09-21 13:23:36 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-22 14:44:34 -0700
commit9c8deef4774f335cbe66c64eb74397f228d41f5f (patch)
tree712747dfde91cb1f0984a05a6fa95e15b2e923a0 /core/parse-xml.c
parentd2b8088cd8cc41e473175b748b6aa164c4812766 (diff)
downloadsubsurface-9c8deef4774f335cbe66c64eb74397f228d41f5f.tar.gz
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>
Diffstat (limited to 'core/parse-xml.c')
-rw-r--r--core/parse-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c
index 3f2f3ea59..dd2250d21 100644
--- a/core/parse-xml.c
+++ b/core/parse-xml.c
@@ -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;