diff options
Diffstat (limited to 'scripts/kconfig/mconf.c')
-rw-r--r-- | scripts/kconfig/mconf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index 2ee12a744641..1935818040e2 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c | |||
@@ -357,8 +357,9 @@ static void get_symbol_str(struct gstr *r, struct symbol *sym) | |||
357 | bool hit; | 357 | bool hit; |
358 | struct property *prop; | 358 | struct property *prop; |
359 | 359 | ||
360 | str_printf(r, "Symbol: %s [=%s]\n", sym->name, | 360 | if (sym && sym->name) |
361 | sym_get_string_value(sym)); | 361 | str_printf(r, "Symbol: %s [=%s]\n", sym->name, |
362 | sym_get_string_value(sym)); | ||
362 | for_all_prompts(sym, prop) | 363 | for_all_prompts(sym, prop) |
363 | get_prompt_str(r, prop); | 364 | get_prompt_str(r, prop); |
364 | hit = false; | 365 | hit = false; |