diff options
Diffstat (limited to 'usr.bin/cvs/util.c')
-rw-r--r-- | usr.bin/cvs/util.c | 8 |
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); |