diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2005-12-30 16:48:34 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2005-12-30 16:48:34 +0000 |
commit | b983d28d4545ed4d7773ad232a0d92a9f0a559b3 (patch) | |
tree | 5734afe0f4d17a53edc0e1aad3cdcf4d71fb69f5 /usr.bin/cvs/rcs.c | |
parent | 72606759cdf0793422b8448abef69fc995e3d541 (diff) |
- simplify an unecessary if/else construct in rcs_open()
spotted by joris@
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-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); } |