summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2020-07-07 11:56:23 -0700
committerWayne Davison <wayne@opencoder.net>2020-07-07 11:56:23 -0700
commitd2d6ad481afd323504234ccb7ecb97866b3d6931 (patch)
tree8bc2056a3fbcf242fecdac03ceecdbf19456b386 /options.c
parent5dcb49c7ddec765d4a24b4f801ffc7212c085db1 (diff)
downloadrsync-d2d6ad481afd323504234ccb7ecb97866b3d6931.tar.gz
Allow --max-alloc=0 for unlimited.
Diffstat (limited to 'options.c')
-rw-r--r--options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options.c b/options.c
index 0b7b9f33..83146eef 100644
--- a/options.c
+++ b/options.c
@@ -1889,7 +1889,7 @@ int parse_arguments(int *argc_p, const char ***argv_p)
max_alloc_arg = NULL;
}
if (max_alloc_arg) {
- ssize_t size = parse_size_arg(max_alloc_arg, 'B', "max-alloc", 1024*1024, False);
+ ssize_t size = parse_size_arg(max_alloc_arg, 'B', "max-alloc", 1024*1024, True);
if (size < 0)
return 0;
max_alloc = size;