2009-04-08 Felix Zielcke <fzielcke@z-51.de>
* disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
This commit is contained in:
parent
ea3f72cf0e
commit
af63ada2bd
2 changed files with 6 additions and 1 deletions
|
@ -530,7 +530,8 @@ grub_lvm_scan_device (const char *name)
|
|||
goto fail4;
|
||||
}
|
||||
|
||||
p = grub_strchr (p, '}');
|
||||
if (p != NULL)
|
||||
p = grub_strchr (p, '}');
|
||||
if (p == NULL)
|
||||
goto lvs_fail;
|
||||
p += 3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue