gunzip: use status code from gzip_decompress

This commit is contained in:
K. Lange 2020-05-05 00:07:17 +09:00
parent 1c0e741c99
commit 0e38268863
1 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,9 @@ int main(int argc, char * argv[]) {
ctx.write_output = _write;
ctx.ring = NULL; /* Use the global one */
gzip_decompress(&ctx);
if (gzip_decompress(&ctx)) {
return 1;
}
if (!to_stdout) {
fclose(ctx.output_priv);