[hackers] [sbase] Break out on first match || sin

From: <git_AT_suckless.org>
Date: Thu, 20 Nov 2014 18:03:14 +0100

commit fe48fbc4e10f19ff8cffacce6e8afa2d25d4d10d
Author: sin <sin_AT_2f30.org>
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
_AT_@ -222,6 +222,7 @@ grep(FILE *fp, const char *str)
                                 break;
                         }
                         match = Match;
+ break;
                 }
         }
         if (mode == 'c')
Received on Thu Nov 20 2014 - 18:03:14 CET

This archive was generated by hypermail 2.3.0 : Thu Nov 20 2014 - 18:12:21 CET