summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 a45fe935..2f4eab0f 100644
--- a/backend/epub/epub-document.c
+++ b/backend/epub/epub-document.c
@@ -1267,7 +1267,7 @@ setup_document_index(EpubDocument *epub_document,gchar *containeruri)
xmlNodePtr navPoint = xmlretval;
- do {
+ while(navPoint != NULL) {
if ( !xmlStrcmp(navPoint->name,(xmlChar*)"navPoint")) {
xmlretval = NULL;
@@ -1315,7 +1315,7 @@ setup_document_index(EpubDocument *epub_document,gchar *containeruri)
navPoint = navPoint->next;
- } while(navPoint != NULL);
+ }
xml_free_doc();