diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2016-09-24 14:39:22 +0200 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2016-09-24 14:39:22 +0200 |
commit | adcacefc26fabadc74cec14c190c9d849d34a636 (patch) | |
tree | 4c9c8b4d51aa70dae99894b369b64432a853e15e | |
parent | 09d5b760e0914ae1438523646465f293587b0977 (diff) |
Make the path static
That way it should only be initialized once and then reused.
-rw-r--r-- | sxmlc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]); |