config: Fix multiple trailing spaces before comments not completely trimmed

This commit is contained in:
Linquize 2014-10-04 23:27:06 +08:00
parent 9f57fd6443
commit 0a64164700

View File

@ -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';