summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ddcprobe/ddcprobe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ddcprobe/ddcprobe.c b/ddcprobe/ddcprobe.c
index 32b96d4c3..a0e612a8d 100644
--- a/ddcprobe/ddcprobe.c
+++ b/ddcprobe/ddcprobe.c
@@ -92,8 +92,8 @@ int main(int argc, char **argv)
edid_info = vbe_get_edid_info();
/* Interpret results. */
- if(edid_info == NULL) {
- printf("EDID failed. (No DDC-capable monitor attached?)\n");
+ if((edid_info == NULL) || (edid_info->version == 0)) {
+ printf("EDID read failed. (No DDC-capable monitor attached?)\n");
exit(0);
}