Revision: 2073
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2073
Author:   fzielcke
Date:     2009-04-08 15:03:50 +0000 (Wed, 08 Apr 2009)
Log Message:
-----------
2009-04-08  Felix Zielcke  <[email protected]>

        * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/disk/lvm.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog       2009-04-07 23:49:27 UTC (rev 2072)
+++ trunk/grub2/ChangeLog       2009-04-08 15:03:50 UTC (rev 2073)
@@ -1,3 +1,7 @@
+2009-04-08  Felix Zielcke  <[email protected]>
+
+       * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
+
 2009-04-07  David S. Miller  <[email protected]>
 
        * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add

Modified: trunk/grub2/disk/lvm.c
===================================================================
--- trunk/grub2/disk/lvm.c      2009-04-07 23:49:27 UTC (rev 2072)
+++ trunk/grub2/disk/lvm.c      2009-04-08 15:03:50 UTC (rev 2073)
@@ -530,7 +530,8 @@
                  goto fail4;
                }
 
-             p = grub_strchr (p, '}');
+             if (p != NULL)
+               p = grub_strchr (p, '}');
              if (p == NULL)
                goto lvs_fail;
              p += 3;



Reply via email to