fix segfault on passing --{create,expunge}-{master,slave}
stupid copy&pasto. found by coverity.
This commit is contained in:
parent
ae49a37a3e
commit
31ba8375b0
|
@ -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…
Reference in New Issue
Block a user