aboutsummaryrefslogtreecommitdiff
path: root/builtin-grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin-grep.c')
-rw-r--r--builtin-grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-grep.c b/builtin-grep.c
index 26a3fc387..d290074af 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]);
}