From dc66c92445316f20df5b5e9a911c747e62484ce9 Mon Sep 17 00:00:00 2001 From: Thomas Beutlich Date: Fri, 27 Dec 2024 17:11:13 +0100 Subject: [PATCH] refs #51: Fix access violation --- ExternData/Resources/C-Sources/ED_XLSXFile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ExternData/Resources/C-Sources/ED_XLSXFile.c b/ExternData/Resources/C-Sources/ED_XLSXFile.c index bdf4712..2e8bf0c 100644 --- a/ExternData/Resources/C-Sources/ED_XLSXFile.c +++ b/ExternData/Resources/C-Sources/ED_XLSXFile.c @@ -209,7 +209,9 @@ void* ED_createXLSX(const char* fileName, int verbose, int detectMissingData) } XmlNode_deleteTree(root); - parseXML(xlsx->zfile, STR_XML, &xlsx->sharedStringsRoot); + if (parseXML(xlsx->zfile, STR_XML, &xlsx->sharedStringsRoot) != 0) { + xlsx->sharedStringsRoot = NULL; + } xlsx->loc = ED_INIT_LOCALE; switch (detectMissingData) {