Commit 35752097 authored by Domen Puncer's avatar Domen Puncer Committed by Linus Torvalds

[PATCH] lib/parser: fix %% parsing

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: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0cabd12d
......@@ -47,6 +47,7 @@ static int match_one(char *s, char *p, substring_t args[])
else if (*p == '%') {
if (*s++ != '%')
return 0;
p++;
continue;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment