summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2008-06-17 06:38:22 +0000
committerJoris Vink <joris@cvs.openbsd.org>2008-06-17 06:38:22 +0000
commitd8898dddd48c2e739ad47ff556842595bb9bd31e (patch)
tree4c87cb7a4f5b7b7a5895d2fd3e8a5ffefb6d39e0 /usr.bin/cvs/diff.c
parent44c5763aa571a977e333a5d3d8f73b4794894db5 (diff)
unbreak diff for newly added files, tsk.
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index b0e15a3ce6a..4f02c224e43 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.141 2008/06/14 04:34:08 tobias Exp $ */
+/* $OpenBSD: diff.c,v 1.142 2008/06/17 06:38:21 joris Exp $ */
/*
* Copyright (c) 2008 Tobias Stoeckmann <tobias@openbsd.org>
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
@@ -315,7 +315,7 @@ cvs_diff_local(struct cvs_file *cf)
date1 == -1 && date2 == -1)
return;
- if (cf->file_rcs->rf_head == NULL) {
+ if (cf->file_rcs != NULL && cf->file_rcs->rf_head == NULL) {
cvs_log(LP_ERR, "no head revision in RCS file for %s\n",
cf->file_path);
return;