Merge pull request #51 from BarbarossaTM/whitespaces

Remove leading whitespaces around interface attribute values.
This commit is contained in:
Ariadne Conill 2020-08-30 15:39:01 -06:00 committed by GitHub
commit 4b32a0787d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,6 +146,10 @@ handle_generic(struct lif_dict *collection, const char *filename, size_t lineno,
token = maybe_remap_token(token);
/* Skip any leading whitespaces in value for <token> */
while (isspace (*bufp))
bufp++;
lif_dict_add(&cur_iface->vars, token, strdup(bufp));
/* Check if token looks like <word1>-<word*> and assume <word1> is an addon */