From d1516c4d628dbded9e1abefaacc1535aaecef418 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 17 Jul 2010 22:43:42 +0200 Subject: [PATCH] dos2unix: fix the case w/o parameters Signed-off-by: Denys Vlasenko --- coreutils/dos2unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c index 1911f5319..e06ecc4e0 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; }