[PATCH] nconfig: menu_get_prompt() return "", if no promt
From: Andrej Gelenberg
Date: Tue Jul 12 2011 - 12:36:50 EST
Help message box has "" as titled instead of "(null)" on empty menu in
nconf.
Signed-off-by: Andrej Gelenberg <andrej.gelenberg@xxxxxxx>
---
scripts/kconfig/menu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index 6a09cc4..0783d8e 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -476,7 +476,7 @@ const char *menu_get_prompt(struct menu *menu)
else if (menu->sym)
return menu->sym->name;
}
- return NULL;
+ return "";
}
struct menu *menu_get_root_menu(struct menu *menu)
--
1.7.6
--------------090504070605030506030300--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/