From b3fd93d1d59d22489de2a88c3e0a9373fb3a1569 Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 25 Jun 2010 18:58:44 +0100 Subject: Fix initialisation bug, clean Makefile --- tocxml.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tocxml.c') 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")) -- cgit v1.2.3