isync

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

commit 31ba8375b0afbd0902a596bff7fb55249908ce9a
parent ae49a37a3e82f3b590b8a95e778b56ff5286311f
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sat, 12 Apr 2014 15:16:22 +0200

fix segfault on passing --{create,expunge}-{master,slave}

stupid copy&pasto.

found by coverity.

Diffstat:
Msrc/main.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -289,9 +289,9 @@ main( int argc, char **argv ) if (!*opt) cops |= op; else if (!strcmp( opt, "-master" )) - mvars->ops[M] |= op, ochar++; + mvars->ops[M] |= op; else if (!strcmp( opt, "-slave" )) - mvars->ops[S] |= op, ochar++; + mvars->ops[S] |= op; else goto badopt; mvars->ops[M] |= op & (XOP_HAVE_CREATE|XOP_HAVE_EXPUNGE);