]> git.proxmox.com Git - grub2.git/commitdiff
2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 8 Nov 2009 23:28:10 +0000 (00:28 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 8 Nov 2009 23:28:10 +0000 (00:28 +0100)
* normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.

ChangeLog
normal/auth.c

index 346647bcadfe81d1e80fe1ed2452296e9be30638..527b66f614718f7958b37e5cc3f289a68efd71b3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-09  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
+
 2009-11-09  Robert Millan  <rmh.grub@aybabtu.com>
 
        * util/i386/coreboot/grub-mkrescue.in: New file.
index afe65315d472d1a6236b2fb3ce18a3f8d3127178..615e993a3e6f7fdea52882885bfe7d5f497e6b3c 100644 (file)
@@ -40,7 +40,7 @@ grub_auth_strcmp (const char *user_input, const char *template)
   int ok = 1;
   const char *ptr1, *ptr2;
 
-  if (ptr2 == NULL)
+  if (template == NULL)
     ok = 0;
 
   for (ptr1 = user_input, ptr2 = template; *ptr1; ptr1++)