Skip to content

Commit

Permalink
com32/cmenu/adv_menu.tpl: Use the proper value for ipappend
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H. Peter Anvin committed Mar 16, 2011
1 parent 0fb43d6 commit 5cae145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion com32/cmenu/adv_menu.tpl
Expand Up @@ -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);
}

Expand Down

0 comments on commit 5cae145

Please sign in to comment.