summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--builtin-grep.c2
1 files changed, 1 insertions, 1 deletions
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]);
}