aboutsummaryrefslogtreecommitdiffstats
path: root/com32/menu/readconfig.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-19 16:42:40 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-19 16:51:24 -0800
commit89884164998f424ad500dec64ca5aa0b178bc6fc (patch)
tree5d7d8f9a61cacdd235b366dc2ad12bd977341cfc /com32/menu/readconfig.c
parent04d9aac1064ebec403d2015bfc9416987896e050 (diff)
downloadsyslinux-89884164998f424ad500dec64ca5aa0b178bc6fc.tar.gz
syslinux-89884164998f424ad500dec64ca5aa0b178bc6fc.tar.xz
syslinux-89884164998f424ad500dec64ca5aa0b178bc6fc.zip
Set m->title for both root and submenus
Diffstat (limited to 'com32/menu/readconfig.c')
-rw-r--r--com32/menu/readconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/menu/readconfig.c b/com32/menu/readconfig.c
index 3bbca3be..554ad918 100644
--- a/com32/menu/readconfig.c
+++ b/com32/menu/readconfig.c
@@ -120,6 +120,7 @@ static struct menu * new_menu(struct menu *parent,
int i;
m->label = refstrdup(label);
+ m->title = refstr_get(empty_string);
if (parent) {
/* Submenu */
@@ -136,7 +137,6 @@ static struct menu * new_menu(struct menu *parent,
m->allowedit = parent->allowedit;
m->timeout = parent->timeout;
- m->title = refstr_get(empty_string);
m->ontimeout = refstr_get(parent->ontimeout);
m->onerror = refstr_get(parent->onerror);
m->menu_master_passwd = refstr_get(parent->menu_master_passwd);