dovecot-2.2: lib-fs: Minor code cleanup

dovecot at dovecot.org dovecot at dovecot.org
Sat May 9 16:02:34 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/24c2adaded28
changeset: 18606:24c2adaded28
user:      Timo Sirainen <tss at iki.fi>
date:      Sat May 09 19:00:36 2015 +0300
description:
lib-fs: Minor code cleanup
Both temp_output and super_output are NULL so it doesn't matter which we
use, but this change makes it use the intended variable.

diffstat:

 src/lib-fs/fs-metawrap.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r ceb9c13eb3c0 -r 24c2adaded28 src/lib-fs/fs-metawrap.c
--- a/src/lib-fs/fs-metawrap.c	Sat May 09 18:53:02 2015 +0300
+++ b/src/lib-fs/fs-metawrap.c	Sat May 09 19:00:36 2015 +0300
@@ -389,7 +389,7 @@
 	if (file->temp_output == NULL) {
 		/* finishing up */
 		i_assert(file->super_output == NULL);
-		return fs_write_stream_finish(file->super, &file->super_output);
+		return fs_write_stream_finish(file->super, &file->temp_output);
 	}
 	/* finish writing the temporary file */
 	input = iostream_temp_finish(&file->temp_output, IO_BLOCK_SIZE);


More information about the dovecot-cvs mailing list