mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 22:55:47 +00:00
config_parse: no need to check if current_section is non-null
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
This commit is contained in:
parent
923fe4557f
commit
0bbaf9aaef
@ -666,8 +666,7 @@ static int config_parse(git_config *cfg_file)
|
||||
break;
|
||||
|
||||
case '[': /* section header, new section begins */
|
||||
if (current_section)
|
||||
free(current_section);
|
||||
free(current_section);
|
||||
error = parse_section_header(cfg_file, ¤t_section, line);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user