diff options
author | Rob Landley <rob@landley.net> | 2006-03-01 16:39:45 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-03-01 16:39:45 +0000 |
commit | e7c43b66d74ee9902a6732122788a7a16bcfbf18 (patch) | |
tree | ebb8583e9e1265588592614c0b4878daded44125 /scripts | |
parent | 93f2286e6e59dab5eed14b5912a79254031c5a62 (diff) | |
download | busybox-w32-e7c43b66d74ee9902a6732122788a7a16bcfbf18.tar.gz busybox-w32-e7c43b66d74ee9902a6732122788a7a16bcfbf18.tar.bz2 busybox-w32-e7c43b66d74ee9902a6732122788a7a16bcfbf18.zip |
Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)
from before "if(x) free(x)".
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/config/confdata.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/config/confdata.c b/scripts/config/confdata.c index c87124584..30517020d 100644 --- a/scripts/config/confdata.c +++ b/scripts/config/confdata.c | |||
@@ -102,8 +102,7 @@ int conf_read(const char *name) | |||
102 | case S_INT: | 102 | case S_INT: |
103 | case S_HEX: | 103 | case S_HEX: |
104 | case S_STRING: | 104 | case S_STRING: |
105 | if (sym->user.val) | 105 | free(sym->user.val); |
106 | free(sym->user.val); | ||
107 | default: | 106 | default: |
108 | sym->user.val = NULL; | 107 | sym->user.val = NULL; |
109 | sym->user.tri = no; | 108 | sym->user.tri = no; |