commit fe48fbc4e10f19ff8cffacce6e8afa2d25d4d10d
Author: sin <[email protected]>
Date:   Thu Nov 20 17:02:48 2014 +0000

    Break out on first match

diff --git a/grep.c b/grep.c
index 1da705e..b02ff38 100644
--- a/grep.c
+++ b/grep.c
@@ -222,6 +222,7 @@ grep(FILE *fp, const char *str)
                                break;
                        }
                        match = Match;
+                       break;
                }
        }
        if (mode == 'c')


Reply via email to