X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=config.c;h=253c48a6130a9268c106170df7205441d4ab36ac;hb=8f5ff31f8e74ac2f72c3c415beb2639bc36f7cb7;hp=4e1f0c22862b8c8605dbbf3a83ec4e87d9059513;hpb=36932eab772dc621e79d615fda425ecf87e6d74e;p=git.git diff --git a/config.c b/config.c index 4e1f0c22..253c48a6 100644 --- a/config.c +++ b/config.c @@ -60,6 +60,12 @@ static char *parse_value(void) space = 1; continue; } + if (!quote) { + if (c == ';' || c == '#') { + comment = 1; + continue; + } + } if (space) { if (len) value[len++] = ' '; @@ -93,12 +99,6 @@ static char *parse_value(void) quote = 1-quote; continue; } - if (!quote) { - if (c == ';' || c == '#') { - comment = 1; - continue; - } - } value[len++] = c; } }