diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2007-01-20 01:07:52 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2007-01-20 01:07:52 +0000 |
commit | 33547e991a0d7e9aba396e4c1bb8fa46a2085bd4 (patch) | |
tree | 686a9e1164f5ac6bad5eb0ae4e73d56bdebf4632 /usr.bin/cvs/diff.c | |
parent | aadc32d5dc5192aaac87e25baeb9eebae787b55b (diff) |
sweep opencvs for missing rcs_translate_tag() return checks.
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r-- | usr.bin/cvs/diff.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c index 2910f9a7399..ba3774d724c 100644 --- a/usr.bin/cvs/diff.c +++ b/usr.bin/cvs/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.114 2007/01/15 04:21:38 joris Exp $ */ +/* $OpenBSD: diff.c,v 1.115 2007/01/20 01:07:51 niallo Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -192,9 +192,11 @@ cvs_diff_local(struct cvs_file *cf) } if (rev1 != NULL) - diff_rev1 = rcs_translate_tag(rev1, cf->file_rcs); + if ((diff_rev1 = rcs_translate_tag(rev1, cf->file_rcs)) == NULL) + fatal("cvs_diff_local: could not translate tag `%s'", rev1); if (rev2 != NULL) - diff_rev2 = rcs_translate_tag(rev2, cf->file_rcs); + if ((diff_rev2 = rcs_translate_tag(rev2, cf->file_rcs)) == NULL) + fatal("cvs_diff_local: could not translate tag `%s'", rev2); diff_file = cf->file_path; cvs_printf("Index: %s\n%s\nRCS file: %s\n", cf->file_path, |