summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]);