summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcs.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-05-08 16:56:41 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-05-08 16:56:41 +0000
commit727419a21fa3b76267d776626bef335df6e0a26b (patch)
tree28602d5a1b45187f2be61faa2b3cf164182facaa /usr.bin/rcs/rcs.c
parent7362f5c681d12bd2150c879e48090cd142c74561 (diff)
check for rcs_diffreg() return value; OK ray@.
Diffstat (limited to 'usr.bin/rcs/rcs.c')
-rw-r--r--usr.bin/rcs/rcs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcs.c b/usr.bin/rcs/rcs.c
index 74c8fecfe6d..4b742e91a94 100644
--- a/usr.bin/rcs/rcs.c
+++ b/usr.bin/rcs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.7 2006/05/04 07:06:58 xsa Exp $ */
+/* $OpenBSD: rcs.c,v 1.8 2006/05/08 16:56:40 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -1390,7 +1390,8 @@ rcs_rev_remove(RCSFILE *rf, RCSNUM *rev)
rcs_buf_free(prevbuf);
diff_format = D_RCSDIFF;
- rcs_diffreg(path_tmp1, path_tmp2, newdiff);
+ if (rcs_diffreg(path_tmp1, path_tmp2, newdiff) == D_ERROR)
+ errx(1, "rcs_diffreg failed");
newdeltatext = rcs_buf_release(newdiff);
} else if (nextrdp == NULL && prevrdp != NULL) {