ieee1275: Fix segfault in grub-ofpathname
Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
2a88564017
commit
2dc163bf69
1 changed files with 3 additions and 1 deletions
|
@ -46,6 +46,8 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
of_path = grub_util_devname_to_ofpath (argv[1]);
|
of_path = grub_util_devname_to_ofpath (argv[1]);
|
||||||
|
|
||||||
|
if (of_path)
|
||||||
printf ("%s\n", of_path);
|
printf ("%s\n", of_path);
|
||||||
|
|
||||||
free (of_path);
|
free (of_path);
|
||||||
|
|
Loading…
Reference in a new issue