Skip to content

Commit 133878a

Browse files
aitapMichaelChirico
andcommitted
Report write() errno instead of just plain -1
Co-Authored-By: Michael Chirico <[email protected]>
1 parent 0b3d598 commit 133878a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fwrite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ void fwriteMain(fwriteMainArgs args)
845845
free(buffPool);
846846
free(zbuffPool);
847847
deflateEnd(&strm);
848-
STOP(_("Failed to write gzip header. Write returned %d"), ret0);
848+
STOP(_("Failed to write gzip header. Write returned %d"), errwrite);
849849
// # nocov end
850850
}
851851
}

0 commit comments

Comments
 (0)