File otp_src_17.4.1-erts-drivers-gzio.patch of Package erlang
diff -Ndurp otp_src_17.4.1/erts/emulator/drivers/common/gzio.c otp_src_17.4.1-erts-drivers-gzio/erts/emulator/drivers/common/gzio.c
--- otp_src_17.4.1/erts/emulator/drivers/common/gzio.c 2015-01-30 17:57:06.000000000 +0200
+++ otp_src_17.4.1-erts-drivers-gzio/erts/emulator/drivers/common/gzio.c 2015-02-20 22:10:32.990336729 +0200
@@ -726,15 +726,12 @@ local uLong getLong (s)
int
erts_gzclose(ErtsGzFile file)
{
- int err;
gz_stream *s = (gz_stream*)file;
if (s == NULL) return Z_STREAM_ERROR;
- if (s->mode == 'w') {
- err = erts_gzflush (file, Z_FINISH);
- if (err != Z_OK) return s->destroy(s);
- }
+ if (s->mode == 'w')
+ erts_gzflush(file, Z_FINISH);
return s->destroy(s);
}