mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
fix default mem_csv value
Signed-off-by: Morten Borup Petersen <morten_bp@live.dk>
This commit is contained in:
parent
1d2a430b80
commit
407beefad6
1 changed files with 4 additions and 0 deletions
|
@ -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"))
|
||||
return -1;
|
||||
}
|
||||
|
||||
ret |= parse_xml_buffer(filename, mem_csv.data(), mem_csv.size(), log, params);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue