summaryrefslogtreecommitdiff
path: root/tocxml.c
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-06-25 18:58:44 +0100
committerNick White <git@njw.me.uk>2010-06-25 18:58:44 +0100
commitb3fd93d1d59d22489de2a88c3e0a9373fb3a1569 (patch)
tree5ef03eb201d6791d2924f65966a7bef93daf6dfb /tocxml.c
parent7d4ad5e47d8cdc8b9ef10f9a994d8682e14d3cdd (diff)
Fix initialisation bug, clean Makefile
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"))