summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/grijp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/grijp.c b/src/grijp.c
index 8a939f1..1a34f8a 100644
--- a/src/grijp.c
+++ b/src/grijp.c
@@ -195,11 +195,7 @@ int entry_grijp(int argc, char **argv) {
args++;
// count the amount of files provided
- {
- char **cur = args;
- while (*cur != NULL) cur++;
- nfiles = cur - args;
- }
+ for (nfiles = 0; args[nfiles] != NULL; nfiles++);
parse_patterns();