diff options
author | errt <[email protected]> | 2019-10-14 19:49:28 +0200 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2020-07-10 13:25:08 +0200 |
commit | 292b49f544d1c7a1c073e07af27e3a628c90959a (patch) | |
tree | 8a973663e0a3588dfae51ce75c01bc5625be9f8f /backend/epub/epub-document.c | |
parent | 8863ed43f2d200bfedbe25fb0dc446897c06ce5c (diff) | |
download | atril-292b49f544d1c7a1c073e07af27e3a628c90959a.tar.bz2 atril-292b49f544d1c7a1c073e07af27e3a628c90959a.tar.xz |
Fix segfault on empty navMap
Diffstat (limited to 'backend/epub/epub-document.c')
-rw-r--r-- | backend/epub/epub-document.c | 4 |
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(); |