]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Compiler warning fix
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 6 Jul 2016 20:41:18 +0000 (23:41 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 6 Jul 2016 20:41:18 +0000 (23:41 +0300)
src/doveadm/doveadm-zlib.c

index a64a6f30fc2a3be85293b420bee8d65ac0dd1dec..b4e45b47cb89764c6f1cca5ff295705036bad6dd 100644 (file)
@@ -70,7 +70,8 @@ static void cmd_dump_imapzlib(int argc ATTR_UNUSED, char *argv[])
        i_stream_unref(&input);
 
        while (i_stream_read_more(input2, &data, &size) != -1) {
-               fwrite(data, 1, size, stdout);
+               if (fwrite(data, 1, size, stdout) != size)
+                       break;
                i_stream_skip(input2, size);
        }
        i_stream_unref(&input2);