aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/common/efile_drv.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2016-01-27 11:41:38 +0100
committerLukas Larsson <[email protected]>2016-01-27 11:41:38 +0100
commit6b6828e51300e318b8a3a572b6a5d78ca3756d79 (patch)
treea6824d6675cae864245089a4c1c252bae071f4e4 /erts/emulator/drivers/common/efile_drv.c
parent15b30187b04de04709bd7fe988929a18f97e70f9 (diff)
parentb5e787a6483c1aff35d44c0130946df441497d9d (diff)
downloadotp-6b6828e51300e318b8a3a572b6a5d78ca3756d79.tar.gz
otp-6b6828e51300e318b8a3a572b6a5d78ca3756d79.tar.bz2
otp-6b6828e51300e318b8a3a572b6a5d78ca3756d79.zip
Merge branch 'maint'
* maint: efile_drv: logic error in compressed file write
Diffstat (limited to 'erts/emulator/drivers/common/efile_drv.c')
-rw-r--r--erts/emulator/drivers/common/efile_drv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/drivers/common/efile_drv.c b/erts/emulator/drivers/common/efile_drv.c
index a82abc3e9f..c5c780dce5 100644
--- a/erts/emulator/drivers/common/efile_drv.c
+++ b/erts/emulator/drivers/common/efile_drv.c
@@ -1526,10 +1526,10 @@ static void invoke_writev(void *data) {
* with errno.
*/
errno = EINVAL;
- if (! (status =
- erts_gzwrite((ErtsGzFile)d->fd,
- iov[i].iov_base,
- iov[i].iov_len)) == iov[i].iov_len) {
+ status = erts_gzwrite((ErtsGzFile)d->fd,
+ iov[i].iov_base,
+ iov[i].iov_len) == iov[i].iov_len;
+ if (! status) {
d->errInfo.posix_errno =
d->errInfo.os_errno = errno; /* XXX Correct? */
break;