From 25b880fa81149c14fbe21b05cc8595954fd8c932 Mon Sep 17 00:00:00 2001 From: Arnaud Lacombe Date: Wed, 3 Aug 2011 21:52:07 -0400 Subject: [PATCH] --- yaml --- r: 274296 b: refs/heads/master c: 57e6292da67c30acf92f08604f918192a886838a h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/kconfig/menu.c | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 563e5cb2780e..399dc3fa739b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3f198dfee49d2e9c30583c62b0c79286c78c7b44 +refs/heads/master: 57e6292da67c30acf92f08604f918192a886838a diff --git a/trunk/scripts/kconfig/menu.c b/trunk/scripts/kconfig/menu.c index beeb92e75f8f..8c2a97e60faf 100644 --- a/trunk/scripts/kconfig/menu.c +++ b/trunk/scripts/kconfig/menu.c @@ -10,8 +10,7 @@ #include "lkc.h" -static const char nohelp_text[] = N_( - "There is no help available for this option.\n"); +static const char nohelp_text[] = "There is no help available for this option."; struct menu rootmenu; static struct menu **last_entry_ptr; @@ -595,15 +594,14 @@ struct gstr get_relations_str(struct symbol **sym_arr) void menu_get_ext_help(struct menu *menu, struct gstr *help) { struct symbol *sym = menu->sym; + const char *help_text = nohelp_text; if (menu_has_help(menu)) { if (sym->name) str_printf(help, "%s%s:\n\n", CONFIG_, sym->name); - str_append(help, _(menu_get_help(menu))); - str_append(help, "\n"); - } else { - str_append(help, nohelp_text); + help_text = menu_get_help(menu); } + str_printf(help, "%s\n", _(help_text)); if (sym) get_symbol_str(help, sym); }