diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2005-10-09 21:18:00 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2005-10-09 21:18:00 +0000 |
commit | de84084cb5ead49d9e2fe0920ece849d21589134 (patch) | |
tree | 9fc3463fc987d22fed6d778b257aa8fd65829115 /usr.bin/rcs/ci.c | |
parent | 4e8dd37a2bf9595115c590fbdf28674de442d6a1 (diff) |
if -r is not specified, we need to set newrev to file->rf_head.
simpler fix than what i had in mind pointed out by joris.
Diffstat (limited to 'usr.bin/rcs/ci.c')
-rw-r--r-- | usr.bin/rcs/ci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c index 20248836417..366b5483026 100644 --- a/usr.bin/rcs/ci.c +++ b/usr.bin/rcs/ci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ci.c,v 1.14 2005/10/09 19:29:22 joris Exp $ */ +/* $OpenBSD: ci.c,v 1.15 2005/10/09 21:17:59 niallo Exp $ */ /* * Copyright (c) 2005 Niall O'Higgins <niallo@openbsd.org> * All rights reserved. @@ -211,7 +211,8 @@ checkin_main(int argc, char **argv) */ if (newrev != NULL) rcs_head_set(file, newrev); - + else + newrev = file->rf_head; /* * New head revision has to contain entire file; */ |