aboutsummaryrefslogtreecommitdiff
path: root/src/backup.c
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2022-03-05 12:25:30 +0100
committerJan Sucan <jan@jansucan.com>2022-03-05 12:25:30 +0100
commit204f31a3189da01cc315b6a2cdd7eb6815056578 (patch)
tree87f24b81d5176b2d172b3833ce1549878ea46fc8 /src/backup.c
parent2717aa4af2e9014ebe33b808aff1eff7a2ff4908 (diff)
Fix checking of a return value
Diffstat (limited to 'src/backup.c')
-rw-r--r--src/backup.c4
1 files 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;
}
}