aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/nconf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
index d55666d2dd85..d6345df1ce12 100644
--- a/scripts/kconfig/nconf.c
+++ b/scripts/kconfig/nconf.c
@@ -1220,7 +1220,12 @@ static void conf_message_callback(const char *fmt, va_list ap)
1220 1220
1221static void show_help(struct menu *menu) 1221static void show_help(struct menu *menu)
1222{ 1222{
1223 struct gstr help = str_new(); 1223 struct gstr help;
1224
1225 if (!menu)
1226 return;
1227
1228 help = str_new();
1224 menu_get_ext_help(menu, &help); 1229 menu_get_ext_help(menu, &help);
1225 show_scroll_win(main_window, _(menu_get_prompt(menu)), str_get(&help)); 1230 show_scroll_win(main_window, _(menu_get_prompt(menu)), str_get(&help));
1226 str_free(&help); 1231 str_free(&help);