summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@debian.org>2003-12-29 23:40:14 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2003-12-29 23:40:14 -0800
commitea114baca8640d270dc64dd801fe43903ed00303 (patch)
tree172e1612f63d460279457c49a4ebe7c6e7c2930b
parentbfd3fcff8e5dca44ec53075af9d61d308b451a9c (diff)
[PATCH] fix make config help
fgets puts a \n in the buffer before the terminating \0.
-rw-r--r--scripts/kconfig/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 08da496f8369..7dee8c9810bb 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -175,7 +175,7 @@ int conf_string(struct menu *menu)
break;
case '?':
/* print help */
- if (line[1] == 0) {
+ if (line[1] == '\n') {
help = nohelp_text;
if (menu->sym->help)
help = menu->sym->help;