summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-03-28 09:41:36 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-03-28 09:41:36 +0000
commitf7d53406a3da3fa2d596fc449f321d7f3c1227aa (patch)
tree22c726e21a0aac4e84e36c0daa91cb1c2c6f92c9 /usr.bin
parent8fb96171f947071f437c26b66ceefe9ee2883ce6 (diff)
match GNU's output when no revision are present.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rcs/rlog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/rlog.c b/usr.bin/rcs/rlog.c
index b01927cf8e2..7e983f115d2 100644
--- a/usr.bin/rcs/rlog.c
+++ b/usr.bin/rcs/rlog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rlog.c,v 1.34 2006/03/27 06:13:51 pat Exp $ */
+/* $OpenBSD: rlog.c,v 1.35 2006/03/28 09:41:35 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -195,7 +195,7 @@ rlog_file(const char *fname, const char *fpath)
printf("total revisions: %u", file->rf_ndelta);
- if ((hflag == 0) && (tflag == 0))
+ if ((file->rf_head != NULL) && (hflag == 0) && (tflag == 0))
printf(";\tselected revisions:"); /* XXX */
printf("\n");