Remove leading whitespaces before interface attribute values.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
parent
375b5d46cb
commit
64b24b02ed
1 changed files with 4 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue