mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-03 16:49:30 +00:00
config: Fix multiple trailing spaces before comments not completely trimmed
This commit is contained in:
parent
9f57fd6443
commit
0a64164700
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user