From e7c43b66d74ee9902a6732122788a7a16bcfbf18 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 1 Mar 2006 16:39:45 +0000 Subject: Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x) from before "if(x) free(x)". --- scripts/config/confdata.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/config') diff --git a/scripts/config/confdata.c b/scripts/config/confdata.c index c871245..3051702 100644 --- a/scripts/config/confdata.c +++ b/scripts/config/confdata.c @@ -102,8 +102,7 @@ int conf_read(const char *name) case S_INT: case S_HEX: case S_STRING: - if (sym->user.val) - free(sym->user.val); + free(sym->user.val); default: sym->user.val = NULL; sym->user.tri = no; -- cgit v1.1