forked from Imagelibrary/binutils-gdb
Tidy inflateEnd calls
So that no one need worry about the value of Z_OK. bfd/ * compress.c (decompress_contents): Tidy inflateEnd result test. binutils/ * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
This commit is contained in:
@@ -60,8 +60,7 @@ decompress_contents (bfd_byte *compressed_buffer,
|
||||
break;
|
||||
rc = inflateReset (&strm);
|
||||
}
|
||||
rc |= inflateEnd (&strm);
|
||||
return rc == Z_OK && strm.avail_out == 0;
|
||||
return inflateEnd (&strm) == Z_OK && rc == Z_OK && strm.avail_out == 0;
|
||||
}
|
||||
|
||||
/* Compress data of the size specified in @var{uncompressed_size}
|
||||
|
||||
Reference in New Issue
Block a user