notmuch-deliver: Don't read errno inappropriately.

Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
This commit is contained in:
Thomas Schwinge 2010-12-29 20:35:02 +01:00 committed by Ali Polatel
parent 8935c83c56
commit c39fd2a479

View file

@ -167,8 +167,7 @@ save_splice(int fdin, int fdout)
do {
written = splice(pfd[0], NULL, fdout, NULL, ret, 0);
if (!written) {
g_critical("Splicing data to temporary file failed: %s",
g_strerror(errno));
g_critical("Splicing data to temporary file failed: internal error");
close(pfd[0]);
close(pfd[1]);
return EX_IOERR;