filter: Don't ignore lines with leading whitespace
This patch is related to parsing the filter file. The new code skips leading whitespaces before removing trailing whitespaces and comments. Without doing this, lines with leading whitespace are treated like empty lines (i.e. they are ignored).
This commit is contained in:
parent
b131f45cbb
commit
af9d4783a2
@ -78,6 +78,9 @@ void filter_init (void)
|
||||
* comments.
|
||||
*/
|
||||
s = buf;
|
||||
/* skip leading whitespace */
|
||||
while (*s && isspace ((unsigned char) *s))
|
||||
++s;
|
||||
while (*s) {
|
||||
if (isspace ((unsigned char) *s))
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user