initialise the type of search for root

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-12-02 00:03:19 +01:00
parent ac5dcabe67
commit 1f60e35331

View file

@ -622,6 +622,8 @@ find_path (struct grub_btrfs_data *data,
*type = GRUB_BTRFS_DIR_ITEM_TYPE_DIRECTORY;
*tree = data->sblock.root_tree;
key->object_id = data->sblock.root_dir_objectid;
key->type = GRUB_BTRFS_ITEM_TYPE_DIR_ITEM;
key->offset = 0;
while (1)
{