+2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
+
+ * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
+ Fix misuse of variable count.
+
2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
grub_partition_iterate_hook_t hook,
void *hook_data)
{
- int count = 0;
-
if (disk->partition && grub_strcmp (disk->partition->partmap->name, "msdos")
== 0)
return grub_error (GRUB_ERR_BAD_PART_TABLE, "no embedding supported");
.pmap = pmap,
.hook = hook,
.hook_data = hook_data,
- .count = count
+ .count = 0
};
grub_err_t err;
if (err)
return err;
- if (!count)
+ if (!ctx.count)
return grub_error (GRUB_ERR_BAD_PART_TABLE, "no bsdlabel found");
}
return GRUB_ERR_NONE;