summaryrefslogtreecommitdiff
path: root/bin/dd/dd.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dd/dd.c')
-rw-r--r--bin/dd/dd.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/dd/dd.c b/bin/dd/dd.c
index b9daa89f8bf..03176396cd6 100644
--- a/bin/dd/dd.c
+++ b/bin/dd/dd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dd.c,v 1.9 2001/08/07 14:39:27 hugh Exp $ */
+/* $OpenBSD: dd.c,v 1.10 2001/10/04 20:32:27 millert Exp $ */
/* $NetBSD: dd.c,v 1.6 1996/02/20 19:29:06 jtc Exp $ */
/*-
@@ -48,7 +48,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)dd.c 8.5 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: dd.c,v 1.9 2001/08/07 14:39:27 hugh Exp $";
+static char rcsid[] = "$OpenBSD: dd.c,v 1.10 2001/10/04 20:32:27 millert Exp $";
#endif
#endif /* not lint */
@@ -97,8 +97,10 @@ main(argc, argv)
atexit(summary);
- while (files_cnt--)
- dd_in();
+ if (cpy_cnt > 0) {
+ while (files_cnt--)
+ dd_in();
+ }
dd_close();
exit(0);