Bugfix: Skip leading whitespace in variable assignments (Thanks ben)

Fixes: #577
This commit is contained in:
Michael Stapelberg 2011-12-17 11:16:34 +00:00
parent 70e6ba1d0b
commit acb3bdd05e
1 changed files with 2 additions and 0 deletions

View File

@ -479,6 +479,8 @@ void parse_file(const char *f) {
v_value = strstr(value, "\t");
*(v_value++) = '\0';
while (*v_value == '\t' || *v_value == ' ')
v_value++;
struct Variable *new = scalloc(sizeof(struct Variable));
new->key = sstrdup(v_key);