summaryrefslogtreecommitdiffstats
path: root/core/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/file.c')
-rw-r--r--core/file.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/core/file.c b/core/file.c
index beb799c09..f350b5bc3 100644
--- a/core/file.c
+++ b/core/file.c
@@ -335,11 +335,9 @@ int parse_file(const char *filename)
/* Divesoft Freedom */
if (fmt && (!strcasecmp(fmt + 1, "DLF"))) {
- if (!parse_dlf_buffer(mem.buffer, mem.size)) {
- free(mem.buffer);
- return 0;
- }
- return -1;
+ ret = parse_dlf_buffer(mem.buffer, mem.size);
+ free(mem.buffer);
+ return ret;
}
/* DataTrak/Wlog */