Make "shadowed" numeric config entries (ones which depend on
other options which are off) to have the value of 0, not "".
This commit is contained in:
parent
28ea4298e3
commit
c6ab085002
@ -524,6 +524,8 @@ int conf_write(const char *name)
|
|||||||
}
|
}
|
||||||
case S_INT:
|
case S_INT:
|
||||||
str = sym_get_string_value(sym);
|
str = sym_get_string_value(sym);
|
||||||
|
if (!str[0])
|
||||||
|
str = "0";
|
||||||
fprintf(out, "CONFIG_%s=%s\n", sym->name, str);
|
fprintf(out, "CONFIG_%s=%s\n", sym->name, str);
|
||||||
if (out_h) {
|
if (out_h) {
|
||||||
fprintf(out_h, "#define CONFIG_%s %s\n", sym->name, str);
|
fprintf(out_h, "#define CONFIG_%s %s\n", sym->name, str);
|
||||||
|
Loading…
Reference in New Issue
Block a user