diff options
-rw-r--r-- | scripts/kconfig/conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index a95ba93e2..ca722b05d 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c | |||
@@ -390,7 +390,7 @@ static int conf_choice(struct menu *menu) | |||
390 | } | 390 | } |
391 | if (!child) | 391 | if (!child) |
392 | continue; | 392 | continue; |
393 | if (line[strlen(line) - 1] == '?') { | 393 | if (strlen(line) > 0 && line[strlen(line) - 1] == '?') { |
394 | printf("\n%s\n", child->sym->help ? | 394 | printf("\n%s\n", child->sym->help ? |
395 | child->sym->help : nohelp_text); | 395 | child->sym->help : nohelp_text); |
396 | continue; | 396 | continue; |