summaryrefslogtreecommitdiff
path: root/sxmlc.c
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2016-09-24 14:39:22 +0200
committerSilvan Jegen <s.jegen@gmail.com>2016-09-24 14:39:22 +0200
commitadcacefc26fabadc74cec14c190c9d849d34a636 (patch)
tree4c9c8b4d51aa70dae99894b369b64432a853e15e /sxmlc.c
parent09d5b760e0914ae1438523646465f293587b0977 (diff)
Make the path static
That way it should only be initialized once and then reused.
Diffstat (limited to 'sxmlc.c')
-rw-r--r--sxmlc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sxmlc.c b/sxmlc.c
index eee2f26..fc5f66d 100644
--- a/sxmlc.c
+++ b/sxmlc.c
@@ -56,7 +56,7 @@ XMLNode* find_child_node(XMLNode *node, const char* tagname) {
void print_article_title(XMLNode *root) {
XMLNode* next = root;
- const char *path[] = {"front", "article-meta", "title-group", "article-title", NULL};
+ static const char *path[] = {"front", "article-meta", "title-group", "article-title", NULL};
for (int i = 0; path[i]; i++) {
next = find_child_node(next, path[i]);