summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/util.c
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2007-01-20 01:07:52 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2007-01-20 01:07:52 +0000
commit33547e991a0d7e9aba396e4c1bb8fa46a2085bd4 (patch)
tree686a9e1164f5ac6bad5eb0ae4e73d56bdebf4632 /usr.bin/cvs/util.c
parentaadc32d5dc5192aaac87e25baeb9eebae787b55b (diff)
sweep opencvs for missing rcs_translate_tag() return checks.
Diffstat (limited to 'usr.bin/cvs/util.c')
-rw-r--r--usr.bin/cvs/util.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c
index f7e50816c2d..290284110c2 100644
--- a/usr.bin/cvs/util.c
+++ b/usr.bin/cvs/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.99 2007/01/19 23:55:31 todd Exp $ */
+/* $OpenBSD: util.c,v 1.100 2007/01/20 01:07:51 niallo Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org>
@@ -934,10 +934,12 @@ cvs_revision_select(RCSFILE *file, char *range)
if (lstr == NULL)
lstr = RCS_HEAD_INIT;
- lnum = rcs_translate_tag(lstr, file);
+ if ((lnum = rcs_translate_tag(lstr, file)) == NULL)
+ fatal("cvs_revision_select: could not translate tag `%s'", lstr);
if (rstr != NULL) {
- rnum = rcs_translate_tag(rstr, file);
+ if ((rnum = rcs_translate_tag(rstr, file)) == NULL)
+ fatal("cvs_revision_select: could not translate tag `%s'", rstr);
} else {
rnum = rcsnum_alloc();
rcsnum_cpy(file->rf_head, rnum, 0);