summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/file.c b/core/file.c
index c90d394aa..874a4e2c3 100644
--- a/core/file.c
+++ b/core/file.c
@@ -945,6 +945,10 @@ int parse_dan_format(const char *filename, char **params, int pnr)
params[pnr + 6] = NULL;
ptr = strstr(ptr, "ZDP{");
+ if (ptr && ptr[4] == '}') {
+ end_ptr += ptr - (char *)mem_csv.buffer;
+ return report_error(translate("gettextFromC", "No dive profile found from '%s'"), filename);
+ }
if (ptr)
ptr = strstr(ptr, NL);
if (ptr)