diff options
Diffstat (limited to 'bin/cp/cp.c')
-rw-r--r-- | bin/cp/cp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c index 7b77747aa3e..fc3e45047e8 100644 --- a/bin/cp/cp.c +++ b/bin/cp/cp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cp.c,v 1.4 1996/10/28 02:55:05 tholo Exp $ */ +/* $OpenBSD: cp.c,v 1.5 1996/12/14 12:17:38 mickey Exp $ */ /* $NetBSD: cp.c,v 1.14 1995/09/07 06:14:51 jtc Exp $ */ /* @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)cp.c 8.5 (Berkeley) 4/29/95"; #else -static char rcsid[] = "$OpenBSD: cp.c,v 1.4 1996/10/28 02:55:05 tholo Exp $"; +static char rcsid[] = "$OpenBSD: cp.c,v 1.5 1996/12/14 12:17:38 mickey Exp $"; #endif #endif /* not lint */ @@ -258,7 +258,9 @@ copy(argv, type, fts_options) FTSENT *curr; int base, dne, nlen, rval; char *p, *target_mid; - +#ifdef lint + base = 0; +#endif if ((ftsp = fts_open(argv, fts_options, mastercmp)) == NULL) err(1, NULL); for (rval = 0; (curr = fts_read(ftsp)) != NULL;) { |