commit bee7ceb0fb3d553a178e66886298a8a3503e4c33 Author: Oswald Buddenhagen <o...@users.sf.net> Date: Wed Mar 19 10:09:20 2014 +0100
fix zero MaxSize override in Channels REFMAIL: ca+tk8fzb9i9lrc_k4g978c5xr5urnz_s0fpon_-6esdrbne...@mail.gmail.com src/config.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/config.c b/src/config.c index 7743615..c8d9d61 100644 --- 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; } ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel