]> git.sur5r.net Git - i3/i3/commitdiff
Merge branch 'master' into next
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 17 Dec 2011 11:18:35 +0000 (11:18 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 17 Dec 2011 11:18:35 +0000 (11:18 +0000)
src/cfgparse.y

index dbe227ddffd1b2bcce745d1c04cd8a2efc878e74..71727c978ae2b722be81fda0170953a62b677fff 100644 (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);