summaryrefslogtreecommitdiff
path: root/bin/mv/mv.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-12-01 19:10:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-12-01 19:10:40 +0000
commit7aea70daa6990e11bf8dbfab21885771156c64e4 (patch)
tree13f38f9873cfeb17efd9b586a437e8aea09a3860 /bin/mv/mv.c
parentbdf67e5034b68a0bfa16861b9d541cc6c4be78cc (diff)
KNF
Diffstat (limited to 'bin/mv/mv.c')
-rw-r--r--bin/mv/mv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/mv/mv.c b/bin/mv/mv.c
index 8db29894189..3724e3825ce 100644
--- a/bin/mv/mv.c
+++ b/bin/mv/mv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mv.c,v 1.19 2001/09/06 13:29:08 mpech Exp $ */
+/* $OpenBSD: mv.c,v 1.20 2001/12/01 19:10:39 deraadt Exp $ */
/* $NetBSD: mv.c,v 1.9 1995/03/21 09:06:52 cgd Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mv.c 8.2 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: mv.c,v 1.19 2001/09/06 13:29:08 mpech Exp $";
+static char rcsid[] = "$OpenBSD: mv.c,v 1.20 2001/12/01 19:10:39 deraadt Exp $";
#endif
#endif /* not lint */
@@ -281,7 +281,7 @@ fastcopy(from, to, sbp)
static u_int blen;
static char *bp;
register int nread, from_fd, to_fd;
- int badchown = 0, serrno;
+ int badchown = 0, serrno = 0;
if ((from_fd = open(from, O_RDONLY, 0)) < 0) {
warn("%s", from);