2009-07-25 Felix Zielcke <fzielcke@z-51.de>

* kern/file.c (grub_file_open): Fix an error check.
This commit is contained in:
fzielcke 2009-07-25 09:30:25 +00:00
parent 35d16c74b2
commit 7743527799
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2009-07-25 Felix Zielcke <fzielcke@z-51.de>
* kern/file.c (grub_file_open): Fix an error check.
2009-07-24 Vladimir Serbinenko <phcoder@gmail.com> 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
* util/i386/pc/grub-setup.c (setup): Fix segmentation fault when * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when

View file

@ -60,8 +60,8 @@ grub_file_open (const char *name)
char *file_name; char *file_name;
device_name = grub_file_get_device_name (name); device_name = grub_file_get_device_name (name);
if (grub_errno) if (! device_name)
return 0; goto fail;
/* Get the file part of NAME. */ /* Get the file part of NAME. */
file_name = grub_strchr (name, ')'); file_name = grub_strchr (name, ')');