projects
/
grub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ieee1275: Fix segfault in grub-ofpathname
[grub.git]
/
util
/
ieee1275
/
grub-ofpathname.c
diff --git
a/util/ieee1275/grub-ofpathname.c
b/util/ieee1275/grub-ofpathname.c
index
8e5d766
..
300fbdd
100644
(file)
--- a/
util/ieee1275/grub-ofpathname.c
+++ b/
util/ieee1275/grub-ofpathname.c
@@
-46,7
+46,9
@@
int main(int argc, char **argv)
}
of_path = grub_util_devname_to_ofpath (argv[1]);
- printf("%s\n", of_path);
+
+ if (of_path)
+ printf ("%s\n", of_path);
free (of_path);