diff options
| author | Linquize <linquize@yahoo.com.hk> | 2014-10-04 23:27:06 +0800 |
|---|---|---|
| committer | Linquize <linquize@yahoo.com.hk> | 2014-10-04 23:27:06 +0800 |
| commit | 0a64164700d3867855a0a7f6d168fb41eb704bf0 (patch) | |
| tree | 3528eecddc0a664fd9cbf78850505f526abc647a /src/config_file.c | |
| parent | 9f57fd64436b6441684ce5e6641a0e390304224d (diff) | |
| download | libgit2-0a64164700d3867855a0a7f6d168fb41eb704bf0.tar.gz | |
config: Fix multiple trailing spaces before comments not completely trimmed
Diffstat (limited to 'src/config_file.c')
| -rw-r--r-- | src/config_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config_file.c b/src/config_file.c index 7106f18db..8f55c42f3 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -1163,7 +1163,7 @@ static int strip_comments(char *line, int in_quotes) } /* skip any space at the end */ - if (ptr > line && git__isspace(ptr[-1])) { + while (ptr > line && git__isspace(ptr[-1])) { ptr--; } ptr[0] = '\0'; |
