summaryrefslogtreecommitdiff
path: root/tocxml.c
diff options
context:
space:
mode:
Diffstat (limited to 'tocxml.c')
-rw-r--r--tocxml.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tocxml.c b/tocxml.c
index ac75ec7..1e2a0b7 100644
--- a/tocxml.c
+++ b/tocxml.c
@@ -109,6 +109,7 @@ void parsesection(xmlDocPtr file, xmlNodePtr node, sec * cur_section)
/* parses section xml, filling cur_section structure */
{
it * cur_item = NULL;
+ char * pagenums = "";
strncpy(cur_section->uri, (char *) xmlGetProp(node, (unsigned char *) "pdflink"), STR_MAX);
strncpy(cur_section->title, (char *) xmlGetProp(node, (unsigned char *) "title"), STR_MAX);
@@ -120,8 +121,6 @@ void parsesection(xmlDocPtr file, xmlNodePtr node, sec * cur_section)
node = node->xmlChildrenNode;
- char * pagenums;
-
while(node != NULL)
{
if(!xmlStrcmp(node->name, (const xmlChar *) "item"))