changeset 18606:24c2adaded28

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.
author Timo Sirainen <tss@iki.fi>
date Sat, 09 May 2015 19:00:36 +0300
parents ceb9c13eb3c0
children 0a1726e7015b
files src/lib-fs/fs-metawrap.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);