summaryrefslogtreecommitdiff
path: root/backend/epub/epub-document.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/epub/epub-document.c')
-rw-r--r--backend/epub/epub-document.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/epub/epub-document.c b/backend/epub/epub-document.c
index b3a048e2..552a18d3 100644
--- a/backend/epub/epub-document.c
+++ b/backend/epub/epub-document.c
@@ -1256,7 +1256,7 @@ setup_document_index(EpubDocument *epub_document,gchar *containeruri)
xmlNodePtr navPoint = xmlretval;
- do {
+ while(navPoint != NULL) {
if ( !xmlStrcmp(navPoint->name,(xmlChar*)"navPoint")) {
xmlretval = NULL;
@@ -1304,7 +1304,7 @@ setup_document_index(EpubDocument *epub_document,gchar *containeruri)
navPoint = navPoint->next;
- } while(navPoint != NULL);
+ }
xml_free_doc();