From 204f31a3189da01cc315b6a2cdd7eb6815056578 Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sat, 5 Mar 2022 12:25:30 +0100 Subject: Fix checking of a return value --- src/backup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backup.c b/src/backup.c index 7e7c159..4691bac 100644 --- a/src/backup.c +++ b/src/backup.c @@ -151,7 +151,7 @@ backup(const options_t *const opts, resources_t *const res) if (out_buffer_index >= out_buffer_size) { /* The output buffer is full. Write it to the output file */ if (write_out_buffer(res->out_buffer, out_buffer_index, - res->out_file) != 1) { + res->out_file) != 0) { return 1; } out_buffer_index = 0; @@ -174,7 +174,7 @@ backup(const options_t *const opts, resources_t *const res) /* Write out the output buffer */ if (out_buffer_index > 0) { if (write_out_buffer(res->out_buffer, out_buffer_index, - res->out_file) != 1) { + res->out_file) != 0) { return 1; } } -- cgit v1.2.3