Browse Source

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

stupid copy&pasto.

found by coverity.
1.1
Oswald Buddenhagen 11 years ago
parent
commit
31ba8375b0
  1. 4
      src/main.c

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

Loading…
Cancel
Save