diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2014-10-09 12:16:17 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2014-10-09 12:16:17 -0400 |
| commit | dfff1b5bcb632c4e135c9f7d1edaa9afd4fd962f (patch) | |
| tree | 94f3f65ea623df4e0aac570cfc2344a19f7a0832 /src | |
| parent | 919e7016052ce9026246988171ee86cec9c5ead8 (diff) | |
| parent | a447a7e40b03d1c8ecb49ab0ef015eb4c0fd2b6e (diff) | |
| download | libgit2-dfff1b5bcb632c4e135c9f7d1edaa9afd4fd962f.tar.gz | |
Merge pull request #2599 from linquize/config-trailing-spaces
config: Handle multiple spaces that follow a configuration value and precede a comment char
Diffstat (limited to 'src')
| -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'; |
