X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/283887d7779e424a5f0a833f313df96a28f850bc..18233a170eb92412033ca9e1f7be341ffb4e31b3:/fileio.c diff --git a/fileio.c b/fileio.c index a1b68d1c..52e34bda 100644 --- a/fileio.c +++ b/fileio.c @@ -107,7 +107,7 @@ int write_file(int f,char *buf,size_t len) while (len > 0) { int r1; - if (sparse_files) { + if (sparse_files > 0) { int len1 = MIN(len, SPARSE_WRITE_SIZE); r1 = write_sparse(f, buf, len1); } else {