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) if (!*opt)
cops |= op; cops |= op;
else if (!strcmp( opt, "-master" )) else if (!strcmp( opt, "-master" ))
mvars->ops[M] |= op, ochar++; mvars->ops[M] |= op;
else if (!strcmp( opt, "-slave" )) else if (!strcmp( opt, "-slave" ))
mvars->ops[S] |= op, ochar++; mvars->ops[S] |= op;
else else
goto badopt; goto badopt;
mvars->ops[M] |= op & (XOP_HAVE_CREATE|XOP_HAVE_EXPUNGE); mvars->ops[M] |= op & (XOP_HAVE_CREATE|XOP_HAVE_EXPUNGE);

Loading…
Cancel
Save