2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>

* kern/partition.c (grub_partition_probe): Initialize PART to
	NULL. Otherwise, when no partition map is registered, this returns
	a garbage.
This commit is contained in:
okuji 2005-07-19 22:30:36 +00:00
parent b28b81b256
commit 896f0afdb7
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
* kern/partition.c (grub_partition_probe): Initialize PART to
NULL. Otherwise, when no partition map is registered, this returns
a garbage.
2005-07-19 Yoshinori K. Okuji <okuji@enbug.org> 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
* partmap/apple.c (apple_partition_map_iterate): Check if POS * partmap/apple.c (apple_partition_map_iterate): Check if POS

View file

@ -55,7 +55,7 @@ grub_partition_map_iterate (int (*hook) (const grub_partition_map_t partmap))
grub_partition_t grub_partition_t
grub_partition_probe (struct grub_disk *disk, const char *str) grub_partition_probe (struct grub_disk *disk, const char *str)
{ {
grub_partition_t part; grub_partition_t part = 0;
auto int part_map_probe (const grub_partition_map_t partmap); auto int part_map_probe (const grub_partition_map_t partmap);