From 6b00d0d3cab2dfdfc7fab309ded4047d1a993149 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 8 Sep 2005 11:50:48 +0000 Subject: [PATCH] Put the menu_is_visible test back because it avoids printing spurious (albeit commented out) garbage. --- scripts/config/confdata.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/config/confdata.c b/scripts/config/confdata.c index 78f3b20a7..327cf9a4f 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)) -- 2.25.1