From 0bbaf9aaef875daf6e5db6bec143b7b84d906524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Wed, 30 Mar 2011 16:11:55 +0200 Subject: [PATCH] config_parse: no need to check if current_section is non-null MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Martín Nieto --- src/config.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index 4c4db91af..71a173f47 100644 --- a/src/config.c +++ b/src/config.c @@ -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;