aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config/confdata.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-11-03 12:00:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-11-03 12:00:53 +0000
commitb0d9e644648a4e8cf427ed0ea91ed3d5320a3914 (patch)
tree19be416b74e44275d8ff16509e230c2e66146b37 /scripts/config/confdata.c
parent356008e74803aebfef55af2b4dcfb74000aea0a4 (diff)
downloadupstream-b0d9e644648a4e8cf427ed0ea91ed3d5320a3914.tar.gz
upstream-b0d9e644648a4e8cf427ed0ea91ed3d5320a3914.tar.bz2
upstream-b0d9e644648a4e8cf427ed0ea91ed3d5320a3914.zip
scripts/config: fix handling of CONFDEFAULT on oldconfig
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47372
Diffstat (limited to 'scripts/config/confdata.c')
-rw-r--r--scripts/config/confdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/config/confdata.c b/scripts/config/confdata.c
index d9e1b5c4c5..052347ce06 100644
--- a/scripts/config/confdata.c
+++ b/scripts/config/confdata.c
@@ -1166,6 +1166,8 @@ bool conf_set_all_new_symbols(enum conf_def_mode mode)
}
bool has_changed = false;
+ sym_clear_all_valid();
+
for_all_symbols(i, sym) {
if (sym_has_value(sym) || (sym->flags & SYMBOL_VALID))
continue;
@@ -1209,8 +1211,6 @@ bool conf_set_all_new_symbols(enum conf_def_mode mode)
}
- sym_clear_all_valid();
-
/*
* We have different type of choice blocks.
* If curr.tri equals to mod then we can select several