diff options
author | Rob Landley | 2005-09-08 11:50:48 +0000 |
---|---|---|
committer | Rob Landley | 2005-09-08 11:50:48 +0000 |
commit | 6b00d0d3cab2dfdfc7fab309ded4047d1a993149 (patch) | |
tree | 1fdabbe1136103328e3e124233959fbb99151243 /scripts | |
parent | 415f6c96287d1a43c916e23b601f0629f6bccbd7 (diff) | |
download | busybox-6b00d0d3cab2dfdfc7fab309ded4047d1a993149.zip busybox-6b00d0d3cab2dfdfc7fab309ded4047d1a993149.tar.gz |
Put the menu_is_visible test back because it avoids printing spurious
(albeit commented out) garbage.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/config/confdata.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/scripts/config/confdata.c b/scripts/config/confdata.c index 78f3b20..327cf9a 100644 --- a/scripts/config/confdata.c +++ b/scripts/config/confdata.c @@ -322,18 +322,18 @@ int conf_write(const char *name) while (menu) { sym = menu->sym; if (!sym) { - //if (!menu_is_visible(menu)) - // goto next; - str = menu_get_prompt(menu); - fprintf(out, "\n" - "#\n" - "# %s\n" - "#\n", str); - if (out_h) - fprintf(out_h, "\n" - "/*\n" - " * %s\n" - " */\n", str); + if (menu_is_visible(menu)) { + str = menu_get_prompt(menu); + fprintf(out, "\n" + "#\n" + "# %s\n" + "#\n", str); + if (out_h) + fprintf(out_h, "\n" + "/*\n" + " * %s\n" + " */\n", str); + } } else if (!(sym->flags & SYMBOL_CHOICE)) { sym_calc_value(sym); //if (!(sym->flags & SYMBOL_WRITE)) |