]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
authorVladimir Serbinenko <phcoder@gmail.com>
Thu, 14 Nov 2013 14:50:43 +0000 (15:50 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Thu, 14 Nov 2013 14:50:43 +0000 (15:50 +0100)
at the start of second iteration.

ChangeLog
grub-core/kern/efi/efi.c

index 4728f8ae4c86628bde9e53255608ae6dd60766f6..a7e144694725e6e723724f04c1990f2f919dc93c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
index 8be9b01dbfdd87463dda591a630ef28f62c00a4d..2a910bbdf6307ef9c75911a771416b8d3012362b 100644 (file)
@@ -307,10 +307,13 @@ grub_efi_modules_addr (void)
 #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)
     {
@@ -334,6 +337,8 @@ grub_efi_get_filename (grub_efi_device_path_t *dp)
   if (!filesize)
     return NULL;
 
+  dp = dp0;
+
   p = name = grub_malloc (filesize);
   if (!name)
     return NULL;