From e590d781f36ee4aac662d8e9dda384738c3b33ee Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 10 Mar 2015 13:26:14 +1100 Subject: [PATCH] Brace failure lead to broken dump to stdout --- stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stream.c b/stream.c index bbef9b8..9211648 100644 --- a/stream.c +++ b/stream.c @@ -625,8 +625,8 @@ ssize_t put_fdout(rzip_control *control, void *offset_buf, ssize_t ret) print_err("Unable to write_fdout tmpoutbuf in put_fdout\n"); return -1; } - close_tmpoutbuf(control); { - if (unlikely(!write_fdout(control, offset_buf, ret))) + close_tmpoutbuf(control); + if (unlikely(!write_fdout(control, offset_buf, ret))) { print_err("Unable to write_fdout offset_buf in put_fdout\n"); return -1; }