From 407beefad6cd8668c3891947e6225b8c152312e1 Mon Sep 17 00:00:00 2001 From: Morten Borup Petersen Date: Mon, 11 Nov 2024 16:58:34 +0100 Subject: [PATCH] fix default mem_csv value Signed-off-by: Morten Borup Petersen --- core/import-csv.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/import-csv.cpp b/core/import-csv.cpp index dcb43baad..36d7e5d94 100644 --- a/core/import-csv.cpp +++ b/core/import-csv.cpp @@ -350,8 +350,12 @@ static int parse_dan_format(const char *filename, struct xml_params *params, str } + if (mem_csv.empty()) { + mem_csv = ""; + } else { if (try_to_xslt_open_csv(filename, mem_csv, "csv")) return -1; + } ret |= parse_xml_buffer(filename, mem_csv.data(), mem_csv.size(), log, params); }