From 5f9fcae63b1f6889016a44f8c717a61ae8c24e95 Mon Sep 17 00:00:00 2001
From: Peter Korsgaard <jacmet@sunsite.dk>
Date: Sun, 15 Feb 2009 22:01:08 +0100
Subject: [PATCH] kconfig: ignore comment entries within choice/endchoice

mconf displays comment entries within choice groups like normal config
entries, but crashes when the user selects them as it tries to derefence
their non existing symbol pointer.
Fix it by simply not showing them in the first place.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 scripts/kconfig/mconf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index 6841e95..cb26f8a 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -730,7 +730,7 @@ static void conf_choice(struct menu *menu)
 
 		current_menu = menu;
 		for (child = menu->list; child; child = child->next) {
-			if (!menu_is_visible(child))
+			if (!menu_is_visible(child)) || !child->sym)
 				continue;
 			item_make("%s", _(menu_get_prompt(child)));
 			item_set_data(child);
-- 
1.5.6.5

