Commit 2dc163bf authored by Eric Snowberg's avatar Eric Snowberg Committed by Daniel Kiper

ieee1275: Fix segfault in grub-ofpathname

Signed-off-by: default avatarEric Snowberg <>
Reviewed-by: default avatarDaniel Kiper <>
parent 2a885640
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment