[git commit master 1/1] dos2unix: fix the case w/o parameters

Denys Vlasenko vda.linux at googlemail.com
Sat Jul 17 20:43:42 UTC 2010


commit: http://git.busybox.net/busybox/commit/?id=d1516c4d628dbded9e1abefaacc1535aaecef418
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 coreutils/dos2unix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c
index 1911f53..e06ecc4 100644
--- a/coreutils/dos2unix.c
+++ b/coreutils/dos2unix.c
@@ -92,7 +92,7 @@ int dos2unix_main(int argc UNUSED_PARAM, char **argv)
 	do {
 		/* might be convert(NULL) if there is no filename given */
 		convert(*argv, conv_type);
-	} while (*++argv);
+	} while (*argv && *++argv);
 
 	return 0;
 }
-- 
1.7.1



More information about the busybox-cvs mailing list