summaryrefslogtreecommitdiff
path: root/com32/cmenu
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-03-16 13:13:31 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-03-16 13:13:31 -0700
commit5cae1450ee0a13fecae066098467433ed4e8b11e (patch)
treecbdfef17d76e35cb7c7ee234664d57fc83084687 /com32/cmenu
parent0fb43d695ff3fcb32b82e4bace0f04b7cfada500 (diff)
downloadsyslinux-5cae1450ee0a13fecae066098467433ed4e8b11e.tar.gz
com32/cmenu/adv_menu.tpl: Use the proper value for ipappend
If x is NULL, we're supposed to pass 0 for ipappend; this was incorrect in the template and the gcc 4.6 unused variable warning caught it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/cmenu')
-rw-r--r--com32/cmenu/adv_menu.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/cmenu/adv_menu.tpl b/com32/cmenu/adv_menu.tpl
index 871c7827..e60383f8 100644
--- a/com32/cmenu/adv_menu.tpl
+++ b/com32/cmenu/adv_menu.tpl
@@ -312,7 +312,7 @@ void runcommand(pt_menuitem mi)
x = (pt_xtra) mi->extra_data;
ipappend = (x ? x->ipappend : 0);
- runsyslinuximage(line,x->ipappend);
+ runsyslinuximage(line,ipappend);
free(line);
}