* grub-core/disk/ldm.c (make_vg): Init part.name.

(grub_ldm_detect): Silence spurious warning.
	(grub_util_is_ldm): Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-29 14:55:09 +01:00
parent 595717e6d4
commit 8cb17de77b
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/disk/ldm.c (make_vg): Init part.name.
(grub_ldm_detect): Silence spurious warning.
(grub_util_is_ldm): Likewise.
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com> 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to

View file

@ -596,6 +596,7 @@ make_vg (grub_disk_t disk,
grub_disk_addr_t start, size; grub_disk_addr_t start, size;
grub_uint8_t *ptr; grub_uint8_t *ptr;
part.name = 0;
if (grub_memcmp (vblk[i].magic, LDM_VBLK_MAGIC, if (grub_memcmp (vblk[i].magic, LDM_VBLK_MAGIC,
sizeof (vblk[i].magic)) != 0) sizeof (vblk[i].magic)) != 0)
continue; continue;
@ -757,7 +758,7 @@ grub_ldm_detect (grub_disk_t disk,
int i; int i;
for (i = 0; i < 3; i++) for (i = 0; i < 3; i++)
{ {
grub_disk_addr_t sector; grub_disk_addr_t sector = LDM_LABEL_SECTOR;
switch (i) switch (i)
{ {
case 0: case 0:
@ -868,7 +869,7 @@ grub_util_is_ldm (grub_disk_t disk)
int i; int i;
for (i = 0; i < 3; i++) for (i = 0; i < 3; i++)
{ {
grub_disk_addr_t sector; grub_disk_addr_t sector = LDM_LABEL_SECTOR;
grub_err_t err; grub_err_t err;
struct grub_ldm_label label; struct grub_ldm_label label;