summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDenis Vlasenko2009-02-15 12:01:14 +0000
committerDenis Vlasenko2009-02-15 12:01:14 +0000
commitc6ab0850027e65b2ce880da1527690e2a5f93b03 (patch)
treede20ca3d23dbeb124d991d78f20a4d3dd997499b /scripts
parent28ea4298e380d73203890c0f42de68e9798396d8 (diff)
downloadbusybox-c6ab0850027e65b2ce880da1527690e2a5f93b03.zip
busybox-c6ab0850027e65b2ce880da1527690e2a5f93b03.tar.gz
Make "shadowed" numeric config entries (ones which depend on
other options which are off) to have the value of 0, not "".
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/confdata.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index ec107bf..58ea96d 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -524,6 +524,8 @@ int conf_write(const char *name)
}
case S_INT:
str = sym_get_string_value(sym);
+ if (!str[0])
+ str = "0";
fprintf(out, "CONFIG_%s=%s\n", sym->name, str);
if (out_h) {
fprintf(out_h, "#define CONFIG_%s %s\n", sym->name, str);