[2073] 2009-04-08 Felix Zielcke <[email protected]>

Felix Zielcke <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.