dovecot-2.0: Compiler warning fix.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Feb 18 05:56:39 EET 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/cce208f9b393
changeset: 12611:cce208f9b393
user: Timo Sirainen <tss at iki.fi>
date: Fri Feb 18 05:56:38 2011 +0200
description:
Compiler warning fix.
diffstat:
src/plugins/zlib/doveadm-zlib.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 35c6df7f6144 -r cce208f9b393 src/plugins/zlib/doveadm-zlib.c
--- a/src/plugins/zlib/doveadm-zlib.c Fri Feb 18 05:55:34 2011 +0200
+++ b/src/plugins/zlib/doveadm-zlib.c Fri Feb 18 05:56:38 2011 +0200
@@ -138,7 +138,8 @@
}
data = i_stream_get_data(client->input, &size);
- write(STDOUT_FILENO, data, size);
+ if (write(STDOUT_FILENO, data, size) < 0)
+ i_fatal("write(stdout) failed: %m");
i_stream_skip(client->input, size);
}
More information about the dovecot-cvs
mailing list