diff options
-rw-r--r-- | src/common_drm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common_drm.c b/src/common_drm.c index fc1f648..2ff3363 100644 --- a/src/common_drm.c +++ b/src/common_drm.c @@ -373,7 +373,7 @@ static Bool common_drm_conn_set_property(xf86OutputPtr output, Atom property, struct common_drm_property *prop = &conn->props[i]; drmModePropertyPtr dprop; - if (prop->atoms[0] != property) + if (!prop->atoms || prop->atoms[0] != property) continue; dprop = prop->mode_prop; |