From acb3bdd05e369b760a07b5f6e6c181363a980102 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 17 Dec 2011 11:16:34 +0000 Subject: [PATCH] Bugfix: Skip leading whitespace in variable assignments (Thanks ben) Fixes: #577 --- src/cfgparse.y | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cfgparse.y b/src/cfgparse.y index 7a6a7398..073ff241 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -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); -- 2.39.5