fix default mem_csv value

Signed-off-by: Morten Borup Petersen <morten_bp@live.dk>
This commit is contained in:
Morten Borup Petersen 2024-11-11 16:58:34 +01:00
parent 1d2a430b80
commit 407beefad6

View file

@ -350,8 +350,12 @@ static int parse_dan_format(const char *filename, struct xml_params *params, str
} }
if (mem_csv.empty()) {
mem_csv = "<csv></csv>";
} else {
if (try_to_xslt_open_csv(filename, mem_csv, "csv")) if (try_to_xslt_open_csv(filename, mem_csv, "csv"))
return -1; return -1;
}
ret |= parse_xml_buffer(filename, mem_csv.data(), mem_csv.size(), log, params); ret |= parse_xml_buffer(filename, mem_csv.data(), mem_csv.size(), log, params);
} }