(convert_system_partition_to_system_disk): Initialise node.

* grub-core/kern/emu/hostdisk.c
This commit is contained in:
Colin Watson 2010-09-17 23:41:06 +01:00
parent 9c0bad2e15
commit bf8d13388d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-09-17 Colin Watson <cjwatson@ubuntu.com>
* grub-core/kern/emu/hostdisk.c
(convert_system_partition_to_system_disk): Initialise node.
2010-09-17 Colin Watson <cjwatson@ubuntu.com>
* grub-core/kern/emu/hostdisk.c

View File

@ -1163,7 +1163,7 @@ convert_system_partition_to_system_disk (const char *os_dev, struct stat *st)
{
struct dm_tree *tree;
uint32_t maj, min;
struct dm_tree_node *node, *child;
struct dm_tree_node *node = NULL, *child;
void *handle;
const char *node_uuid, *mapper_name = NULL, *child_uuid, *child_name;