summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2013-09-17 20:23:54 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-17 15:17:49 -0400
commit06dae680e42ebb23b0ca9af0df38cd1a77bfbb0c (patch)
treeee65121d98165f1b602ddefbcfdcd903797a0305 /file.c
parentb473604ee8a86ca963fd9faafaf0bfc0125bf652 (diff)
downloadsubsurface-06dae680e42ebb23b0ca9af0df38cd1a77bfbb0c.tar.gz
Enable opening files with .zip suffix
The test file dives/TestDiveDivingLog5.08allmetric.zip wouldn't load. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/file.c b/file.c
index 14607bab2..70eb79ad4 100644
--- a/file.c
+++ b/file.c
@@ -225,12 +225,8 @@ static int try_to_open_csv(const char *filename, struct memblock *mem, enum csv_
static int open_by_filename(const char *filename, const char *fmt, struct memblock *mem, char **error)
{
- /* Suunto Dive Manager files: SDE */
- if (!strcasecmp(fmt, "SDE"))
- return try_to_open_zip(filename, mem, error);
-
- /* divelogs.de files: DLD */
- if (!strcasecmp(fmt, "DLD"))
+ /* Suunto Dive Manager files: SDE, ZIP; divelogs.de files: DLD */
+ if (!strcasecmp(fmt, "SDE") || !strcasecmp(fmt, "ZIP") || !strcasecmp(fmt, "DLD"))
return try_to_open_zip(filename, mem, error);
#if ONCE_COCHRAN_IS_SUPPORTED