lib/parser: fix %% parsing
PATCH 1/1 lib/parser: fix %% parsing
Hi.
Code looks like it intended to parse "%%" in pattern string as "%". Fix it, so it really does that.
Compile and run tested.
Signed-off-by Domen Puncer <[email protected]>
lib/parser.c +1 -0
@@ -47,6 +47,7 @@ static int match_one(char *s, char *p, selse if (*p =='%' ) {if (*s++ !='%' )return 0 ; + p++;continue ; }