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

stupid copy&pasto.

found by coverity.
This commit is contained in:
Oswald Buddenhagen 2014-04-12 15:16:22 +02:00
parent ae49a37a3e
commit 31ba8375b0

View File

@ -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);