Break out on first match

This commit is contained in:
sin 2014-11-20 17:02:48 +00:00
parent a1844fae70
commit fe48fbc4e1

1
grep.c
View File

@ -222,6 +222,7 @@ grep(FILE *fp, const char *str)
break;
}
match = Match;
break;
}
}
if (mode == 'c')