]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
check that adapter->get_edid is non-NULL
authorColin Watson <cjwatson@ubuntu.com>
Tue, 14 Dec 2010 19:03:28 +0000 (19:03 +0000)
committerColin Watson <cjwatson@ubuntu.com>
Tue, 14 Dec 2010 19:03:28 +0000 (19:03 +0000)
grub-core/commands/videoinfo.c

index 56df943ec8109b543f1e10f8c7078d134da1944a..9bd0a0e78f03a79dc50356e285e322dc30ada344 100644 (file)
@@ -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;