Commit 0a641647 by Linquize

config: Fix multiple trailing spaces before comments not completely trimmed

parent 9f57fd64
...@@ -1163,7 +1163,7 @@ static int strip_comments(char *line, int in_quotes) ...@@ -1163,7 +1163,7 @@ static int strip_comments(char *line, int in_quotes)
} }
/* skip any space at the end */ /* skip any space at the end */
if (ptr > line && git__isspace(ptr[-1])) { while (ptr > line && git__isspace(ptr[-1])) {
ptr--; ptr--;
} }
ptr[0] = '\0'; ptr[0] = '\0';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment