summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/rcs/rcsprog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c
index b1edc119367..f087f883026 100644
--- a/usr.bin/rcs/rcsprog.c
+++ b/usr.bin/rcs/rcsprog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsprog.c,v 1.31 2005/10/18 01:22:14 joris Exp $ */
+/* $OpenBSD: rcsprog.c,v 1.32 2005/10/18 01:24:42 joris Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -67,6 +67,9 @@ struct rcs_prog {
void
rcs_set_rev(const char *str, RCSNUM **rev)
{
+ if (str == NULL)
+ return;
+
if (*rev != RCS_HEAD_REV)
cvs_log(LP_WARN, "redefinition of revision number");