isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit bee7ceb0fb3d553a178e66886298a8a3503e4c33
parent 19d86d2aa9415047d8e0a391bd2502023bff80fc
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Wed, 19 Mar 2014 10:09:20 +0100

fix zero MaxSize override in Channels

REFMAIL: CA+Tk8fzb9i9LrC_k4G978c5XR5urNz_s0fpOn_-6EsdrBnEzSQ@mail.gmail.com

Diffstat:
Msrc/config.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/config.c b/src/config.c @@ -422,8 +422,11 @@ load_config( const char *where, int pseudo ) } else if (merge_ops( cops, channel->ops )) cfile.err = 1; else { - if (max_size >= 0) + if (max_size >= 0) { + if (!max_size) + max_size = INT_MAX; channel->stores[M]->max_size = channel->stores[S]->max_size = max_size; + } *channelapp = channel; channelapp = &channel->next; }