diff options
author | 2006-04-25 10:31:39 +0000 | |
---|---|---|
committer | 2006-04-25 10:31:39 +0000 | |
commit | 1db03c24a133c8f19af7236d95f22bbfe8a9562b (patch) | |
tree | 52ca71cacb1fec4bea61644b7ebb625c3c90caaf | |
parent | Oops, correct import this time. (diff) | |
download | wireguard-openbsd-1db03c24a133c8f19af7236d95f22bbfe8a9562b.tar.xz wireguard-openbsd-1db03c24a133c8f19af7236d95f22bbfe8a9562b.zip |
check rcs_head_set() return value.
-rw-r--r-- | usr.bin/cvs/rcs.c | 5 |
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(); |