summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/checkout.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/checkout.c')
-rw-r--r--usr.bin/cvs/checkout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c
index 0b8ac4f50a5..76468d3ff33 100644
--- a/usr.bin/cvs/checkout.c
+++ b/usr.bin/cvs/checkout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: checkout.c,v 1.160 2009/02/23 21:32:08 joris Exp $ */
+/* $OpenBSD: checkout.c,v 1.161 2009/03/18 09:14:09 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -567,7 +567,7 @@ cvs_checkout_file(struct cvs_file *cf, RCSNUM *rnum, char *tag, int co_flags)
sticky[0] = '\0';
kbuf[0] = '\0';
- if (cf->file_rcs->rf_expand != NULL) {
+ if (cf->file_rcs != NULL && cf->file_rcs->rf_expand != NULL) {
cf_kflag = rcs_kflag_get(cf->file_rcs->rf_expand);
if (kflag || cf_kflag != RCS_KWEXP_DEFAULT)
(void)xsnprintf(kbuf, sizeof(kbuf),