From 31ba8375b0afbd0902a596bff7fb55249908ce9a Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sat, 12 Apr 2014 15:16:22 +0200 Subject: [PATCH] fix segfault on passing --{create,expunge}-{master,slave} stupid copy&pasto. found by coverity. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index f2faf25..8c3afda 100644 --- 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);