mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-03 07:22:15 +00:00
(libretro-common) archive_file_zlib.c - cleanup
This commit is contained in:
parent
e88e580832
commit
8ba1f2fca6
@ -167,7 +167,7 @@ static int zlib_stream_decompress_data_to_file_iterate(void *data)
|
||||
z_stream *stream = (z_stream*)data;
|
||||
|
||||
if (!stream)
|
||||
return -1;
|
||||
goto error;
|
||||
|
||||
zstatus = inflate(stream, Z_NO_FLUSH);
|
||||
|
||||
@ -175,9 +175,12 @@ static int zlib_stream_decompress_data_to_file_iterate(void *data)
|
||||
return 1;
|
||||
|
||||
if (zstatus != Z_OK && zstatus != Z_BUF_ERROR)
|
||||
return -1;
|
||||
goto error;
|
||||
|
||||
return 0;
|
||||
|
||||
error:
|
||||
return -1;
|
||||
}
|
||||
|
||||
static void zlib_stream_compress_init(void *data, int level)
|
||||
|
Loading…
x
Reference in New Issue
Block a user