X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=blobdiff_plain;f=config%2Fzconf.y;h=c9a1bcb5fce055b39cc1d4c064235ee9b06ffb7c;hp=02c8550147e5694a0b6773ae587f51bc18626bc1;hb=001b488249ed961ee66e61dccf23866b8d7f8dbd;hpb=b472ec1fc1c17fe5f06ff853672b8d1c1d8a190e diff --git a/config/zconf.y b/config/zconf.y index 02c8550..c9a1bcb 100644 --- a/config/zconf.y +++ b/config/zconf.y @@ -127,7 +127,7 @@ no_mainmenu_stmt: /* empty */ * later regardless of whether it comes from the 'prompt' in * mainmenu_stmt or here */ - menu_add_prompt(P_MENU, strdup("Linux Kernel Configuration"), NULL); + menu_add_prompt(P_MENU, xstrdup("Linux Kernel Configuration"), NULL); }; @@ -276,6 +276,7 @@ choice: T_CHOICE word_opt T_EOL sym->flags |= SYMBOL_AUTO; menu_add_entry(sym); menu_add_expr(P_CHOICE, NULL, NULL); + free($2); printd(DEBUG_PARSE, "%s:%d:choice\n", zconf_curname(), zconf_lineno()); }; @@ -546,7 +547,7 @@ void conf_parse(const char *name) modules_sym = sym_find( "n" ); tmp = rootmenu.prompt->text; - rootmenu.prompt->text = _(rootmenu.prompt->text); + rootmenu.prompt->text = rootmenu.prompt->text; rootmenu.prompt->text = sym_expand_string_value(rootmenu.prompt->text); free((char*)tmp);