summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-02-28 21:55:49 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-02-28 21:55:49 +0000
commit2fb8046a8b0b124f5f6e435af6d314298188d932 (patch)
tree0037984ad1c0faa06d49c65a6897785cde42abd8 /usr.bin/cvs/rcs.c
parenta1e7b73d0c1e549b83ee50ca8642fc9511dc093f (diff)
RCS files can have a default expansion mode, keep this in mind for
update -A and -k. spotted by and ok joris
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r--usr.bin/cvs/rcs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index 644bbcd1284..c88a4452fdf 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.252 2008/02/28 20:24:25 joris Exp $ */
+/* $OpenBSD: rcs.c,v 1.253 2008/02/28 21:55:48 tobias Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -1478,6 +1478,9 @@ rcs_kflag_get(const char *flags)
size_t len;
const char *fp;
+ if (flags == NULL)
+ return 0;
+
fl = 0;
if (!(len = strlen(flags)))
return RCS_KWEXP_ERR;