diff --git a/builtin-grep.c b/builtin-grep.c index 26a3fc387f..d290074af2 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -701,7 +701,7 @@ int cmd_grep(int argc, const char **argv, char **envp) /* The rest are paths */ if (!seen_dashdash) { int j; - for (j = i; j < argc; i++) + for (j = i; j < argc; j++) verify_filename(prefix, argv[j]); }