diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-06-30 09:10:40 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-30 06:01:07 -0700 |
commit | 140d2e41659d394890c5b2c7ed17b79d14d5768a (patch) | |
tree | 45ca6c30c4305985e9e3a57bbfd3616941d10753 /file.c | |
parent | 9602bd616ac257eb5ca79986aa52e72055bc0a7c (diff) | |
download | subsurface-140d2e41659d394890c5b2c7ed17b79d14d5768a.tar.gz |
Try to open ZIP files
Let's just give a try to opening ZIP files. Especially since we have one
of them in the test dives directory.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -233,6 +233,10 @@ static int open_by_filename(const char *filename, const char *fmt, struct memblo if (!strcasecmp(fmt, "DLD")) return try_to_open_zip(filename, mem, error); + /* Give a shot for plain ZIP */ + if (!strcasecmp(fmt, "ZIP")) + return try_to_open_zip(filename, mem, error); + #if ONCE_COCHRAN_IS_SUPPORTED /* Truly nasty intentionally obfuscated Cochran Anal software */ if (!strcasecmp(fmt, "CAN")) |