summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/checkout.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2011-12-27 13:59:02 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2011-12-27 13:59:02 +0000
commit92ff957e32056877605c5dbbfb38c3b8c2be82ec (patch)
treec5fe923a1150a724f412f2ab3cedd7caad9a20db /usr.bin/cvs/checkout.c
parent4c45991971650c26baa47a3a0de6a92780a64dc1 (diff)
Move some global variables/statics to locals, from Michael W
Bombardieri.
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 3bd567275b1..24c922ede54 100644
--- a/usr.bin/cvs/checkout.c
+++ b/usr.bin/cvs/checkout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: checkout.c,v 1.167 2010/07/30 21:47:18 ray Exp $ */
+/* $OpenBSD: checkout.c,v 1.168 2011/12/27 13:59:01 nicm Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -48,7 +48,6 @@ static char *dateflag = NULL;
static int nflag = 0;
-static char lastwd[MAXPATHLEN];
char *checkout_target_dir = NULL;
time_t cvs_specified_date = -1;
@@ -478,6 +477,7 @@ cvs_checkout_file(struct cvs_file *cf, RCSNUM *rnum, char *tag, int co_flags)
char *entry, *tosend;
char kbuf[8], sticky[CVS_REV_BUFSZ], rev[CVS_REV_BUFSZ];
char timebuf[CVS_TIME_BUFSZ], tbuf[CVS_TIME_BUFSZ];
+ static char lastwd[MAXPATHLEN];
exists = 0;
tosend = NULL;