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 { do {
written = splice(pfd[0], NULL, fdout, NULL, ret, 0); written = splice(pfd[0], NULL, fdout, NULL, ret, 0);
if (!written) { if (!written) {
g_critical("Splicing data to temporary file failed: %s", g_critical("Splicing data to temporary file failed: internal error");
g_strerror(errno));
close(pfd[0]); close(pfd[0]);
close(pfd[1]); close(pfd[1]);
return EX_IOERR; return EX_IOERR;