check that adapter->get_edid is non-NULL

This commit is contained in:
Colin Watson committed 2010-12-14 19:03:28 +00:00
1 parent ef429417b2
commit 015e21571c
1 file changed
+1 -1
+1 -1
View File
@@ -169,7 +169,7 @@ grub_cmd_videoinfo (grub_command_t cmd __attribute__ ((unused)),
adapter->iterate (hook); adapter->iterate (hook);
if (adapter->get_edid (&edid_info) == GRUB_ERR_NONE) if (adapter->get_edid && adapter->get_edid (&edid_info) == GRUB_ERR_NONE)
print_edid (&edid_info); print_edid (&edid_info);
else else
grub_errno = GRUB_ERR_NONE; grub_errno = GRUB_ERR_NONE;