Ticket #3577: Fix preallocation if appending during file copy
commit9ee57667486ec601e6f686cd178c1b8c704ac101
authorAndrey Gursky <andrey.gursky@e-mail.ua>
Sat, 19 Dec 2015 02:59:01 +0000 (19 03:59 +0100)
committerYury V. Zaytsev <yury@shurup.com>
Mon, 29 Feb 2016 21:12:28 +0000 (29 22:12 +0100)
tree01913ad505d31113e46d967c69ea787ea5eede6c
parentf69b08bbd008e84707f83bbc49019b3c05d965d2
Ticket #3577: Fix preallocation if appending during file copy

The value of `ctx->do_append` is reset:

    appending = ctx->do_append;
    ctx->do_append = FALSE;

Use `appending` in following conditionals instead.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
src/filemanager/file.c