diff options
| author | Nick White <git@njw.me.uk> | 2010-06-25 18:58:44 +0100 | 
|---|---|---|
| committer | Nick White <git@njw.me.uk> | 2010-06-25 18:58:44 +0100 | 
| commit | b3fd93d1d59d22489de2a88c3e0a9373fb3a1569 (patch) | |
| tree | 5ef03eb201d6791d2924f65966a7bef93daf6dfb /tocxml.c | |
| parent | 7d4ad5e47d8cdc8b9ef10f9a994d8682e14d3cdd (diff) | |
Fix initialisation bug, clean Makefile
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"))  | 
