diff options
Diffstat (limited to 'tocxml.c')
-rw-r--r-- | tocxml.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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")) |