mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 00:59:55 +00:00
check that adapter->get_edid is non-NULL
This commit is contained in:
1 parent
ef429417b2
commit
015e21571c
1 file changed
+1
-1
@@ -169,7 +169,7 @@ grub_cmd_videoinfo (grub_command_t cmd __attribute__ ((unused)),
|
||||
|
||||
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);
|
||||
else
|
||||
grub_errno = GRUB_ERR_NONE;
|
||||
|
||||
Reference in new issue
Block a user