diff --git a/ext/zip/lib/zip_open.c b/ext/zip/lib/zip_open.c index 4b219556c85..dbab6ec4afc 100644 --- a/ext/zip/lib/zip_open.c +++ b/ext/zip/lib/zip_open.c @@ -69,11 +69,11 @@ zip_open(const char *fn, int flags, int *zep) if (flags & ZIP_OVERWRITE) { return _zip_allocate_new(fn, zep); } - + switch (_zip_file_exists(fn, flags, zep)) { case -1: if (!(flags & ZIP_OVERWRITE)) { - return NULL; + return NULL; } case 0: