summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-04-25 10:31:40 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-04-25 10:31:40 +0000
commit7539f184723f3431041d2260da031bef1a7afe63 (patch)
tree6ba1dd083b5111d336f765bed3257436a34c1511 /usr.bin/cvs/rcs.c
parent7cfb4aac6d6cdbf5621b83fbb0d217d0ed60c464 (diff)
check rcs_head_set() return value.
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r--usr.bin/cvs/rcs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index 60123844ea5..342dcbf50f8 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.169 2006/04/14 02:49:43 deraadt Exp $ */
+/* $OpenBSD: rcs.c,v 1.170 2006/04/25 10:31:39 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -1467,7 +1467,8 @@ rcs_rev_remove(RCSFILE *rf, RCSNUM *rev)
if (prevrdp != NULL && nextrdp != NULL) {
rcsnum_cpy(prevrdp->rd_num, nextrdp->rd_next, 0);
} else if (prevrdp != NULL) {
- rcs_head_set(rf, prevrdp->rd_num);
+ if (rcs_head_set(rf, prevrdp->rd_num) < 0)
+ fatal("rcs_head_set failed");
} else if (nextrdp != NULL) {
rcsnum_free(nextrdp->rd_next);
nextrdp->rd_next = rcsnum_alloc();