summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsprog.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-10-18 01:24:43 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-10-18 01:24:43 +0000
commit786df2746b51b8d04096de09dd5f223f4e4a9f8a (patch)
tree45c030305fa554d3ec798c6c8e2db40bff7241de /usr.bin/rcs/rcsprog.c
parent3e3f56b0a6c8f5f053f6a2a188676a5e1ed64295 (diff)
oops, rcs_set_rev() can't operate when str is NULL of course;
Diffstat (limited to 'usr.bin/rcs/rcsprog.c')
-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");