mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 22:35:51 +00:00
Merge pull request #392 from sschuberth/development
Fix a bug and GCC warning introduced in 932669b
This commit is contained in:
commit
b6ed727a45
@ -535,10 +535,8 @@ static char *cfg_readline(diskfile_backend *cfg)
|
|||||||
|
|
||||||
memcpy(line, line_src, line_len);
|
memcpy(line, line_src, line_len);
|
||||||
|
|
||||||
line[line_len] = '\0';
|
do line[line_len] = '\0';
|
||||||
|
while (line_len-- > 0 && isspace(line[line_len]));
|
||||||
while (--line_len >= 0 && isspace(line[line_len]))
|
|
||||||
line[line_len] = '\0';
|
|
||||||
|
|
||||||
if (*line_end == '\n')
|
if (*line_end == '\n')
|
||||||
line_end++;
|
line_end++;
|
||||||
|
Loading…
Reference in New Issue
Block a user