[syslinux:master] com32/cmenu/adv_menu.tpl: Use the proper value for ipappend

syslinux-bot for H. Peter Anvin hpa at zytor.com
Wed Mar 16 13:19:06 PDT 2011


Commit-ID:  5cae1450ee0a13fecae066098467433ed4e8b11e
Gitweb:     http://syslinux.zytor.com/commit/5cae1450ee0a13fecae066098467433ed4e8b11e
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 16 Mar 2011 13:13:31 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 16 Mar 2011 13:13:31 -0700

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 at zytor.com>


---
 com32/cmenu/adv_menu.tpl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/com32/cmenu/adv_menu.tpl b/com32/cmenu/adv_menu.tpl
index 871c782..e60383f 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);
 }
 



More information about the Syslinux-commits mailing list