diff options
author | 2005-12-30 16:48:33 +0000 | |
---|---|---|
committer | 2005-12-30 16:48:33 +0000 | |
commit | 35ddab3e246baaeb43909e77aa6f5741792c33c2 (patch) | |
tree | b70538d095a7abe1b7d7db5c626bdcd2a0165460 | |
parent | consistency tweak, from daniel matic; (diff) | |
download | wireguard-openbsd-35ddab3e246baaeb43909e77aa6f5741792c33c2.tar.xz wireguard-openbsd-35ddab3e246baaeb43909e77aa6f5741792c33c2.zip |
- simplify an unecessary if/else construct in rcs_open()
spotted by joris@
-rw-r--r-- | usr.bin/cvs/rcs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c index 377e92d34c5..893836cc517 100644 --- a/usr.bin/cvs/rcs.c +++ b/usr.bin/cvs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.119 2005/12/30 16:45:35 niallo Exp $ */ +/* $OpenBSD: rcs.c,v 1.120 2005/12/30 16:48:33 niallo Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -348,8 +348,8 @@ rcs_open(const char *path, int flags, ...) TAILQ_INIT(&(rfp->rf_symbols)); TAILQ_INIT(&(rfp->rf_locks)); - if (rfp->rf_flags & RCS_CREATE) { - } else if (rcs_parse_init(rfp) < 0) { + if (!(rfp->rf_flags & RCS_CREATE) + && (rcs_parse_init(rfp) < 0)) { rcs_close(rfp); return (NULL); } |