mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 13:48:41 +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);
|
||||
|
||||
line[line_len] = '\0';
|
||||
|
||||
while (--line_len >= 0 && isspace(line[line_len]))
|
||||
line[line_len] = '\0';
|
||||
do line[line_len] = '\0';
|
||||
while (line_len-- > 0 && isspace(line[line_len]));
|
||||
|
||||
if (*line_end == '\n')
|
||||
line_end++;
|
||||
|
Loading…
Reference in New Issue
Block a user