aboutsummaryrefslogtreecommitdiffstats
path: root/core/import-csv.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2018-01-07 09:02:55 +0200
committerGravatar mturkia <miika.turkia@gmail.com>2018-01-08 06:06:12 +0200
commitf91f16a4b6ab1eaed58cae638324953c8006cfbf (patch)
tree3cf78c962b3e8968773fe2a73f9fcff6b9172586 /core/import-csv.c
parent9d65c5bcddbb01e3f479397010721383df358e98 (diff)
downloadsubsurface-f91f16a4b6ab1eaed58cae638324953c8006cfbf.tar.gz
Dummy parse empty dives
Easiest way to get dives without profiles in, is to just parse empty csv tags. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'core/import-csv.c')
-rw-r--r--core/import-csv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/import-csv.c b/core/import-csv.c
index 3af424315..5a687b0bd 100644
--- a/core/import-csv.c
+++ b/core/import-csv.c
@@ -137,6 +137,7 @@ int parse_dan_format(const char *filename, char **params, int pnr)
/* We got a trailer, no samples on this dive */
if (strncmp(iter, "ZDT", 3) == 0) {
end_ptr = iter - (char *)mem.buffer;
+ ret |= parse_xml_buffer(filename, "<csv></csv>", 11, &dive_table, (const char **)params);
continue;
}