aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sshfs.c b/sshfs.c
index bfa3346..7af8657 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -2563,7 +2563,8 @@ static int sshfs_fsync(const char *path, int isdatasync,
int err;
(void) isdatasync;
- if (err = sshfs_flush(path, fi))
+ err = sshfs_flush(path, fi);
+ if (err)
return err;
if (!sshfs.ext_fsync)