We've been compiling with --enable-debug; this change fixes some
problems exposed by the optimiser.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
struct grub2_statement_if *st = to_stmt_if(statement);
struct grub2_statement *conditional;
bool executed;
struct grub2_statement_if *st = to_stmt_if(statement);
struct grub2_statement *conditional;
bool executed;
list_for_each_entry(&st->conditionals->list, conditional, list) {
rc = statement_conditional_execute(script,
list_for_each_entry(&st->conditionals->list, conditional, list) {
rc = statement_conditional_execute(script,
info = NLMSG_DATA(nlmsg);
have_ifaddr = have_ifname = false;
info = NLMSG_DATA(nlmsg);
have_ifaddr = have_ifname = false;
attrlen = nlmsg->nlmsg_len - sizeof(*info);
attrlen = nlmsg->nlmsg_len - sizeof(*info);
if (!pxe_conf_files)
goto out_conf;
if (!pxe_conf_files)
goto out_conf;
for (filename = pxe_conf_files; *filename; filename++) {
url = pb_url_join(dc, conf_url, *filename);
if (!url)
for (filename = pxe_conf_files; *filename; filename++) {
url = pb_url_join(dc, conf_url, *filename);
if (!url)