Commit 0bbaf9aa by Carlos Martín Nieto

config_parse: no need to check if current_section is non-null

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
parent 923fe455
......@@ -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, &current_section, line);
break;
......
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