at the start of second iteration.
+2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
+ at the start of second iteration.
+
2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
#pragma GCC diagnostic error "-Wcast-align"
char *
-grub_efi_get_filename (grub_efi_device_path_t *dp)
+grub_efi_get_filename (grub_efi_device_path_t *dp0)
{
char *name = 0, *p;
grub_size_t filesize = 0;
+ grub_efi_device_path_t *dp;
+
+ dp = dp0;
while (1)
{
if (!filesize)
return NULL;
+ dp = dp0;
+
p = name = grub_malloc (filesize);
if (!name)
return NULL;