summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/glamo-kms-driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glamo-kms-driver.c b/src/glamo-kms-driver.c
index afc7d6b..3c281a3 100644
--- a/src/glamo-kms-driver.c
+++ b/src/glamo-kms-driver.c
@@ -87,6 +87,7 @@ Bool GlamoKernelModesettingAvailable()
do {
ent = readdir(dir);
+ if ( !ent ) return FALSE;
if ( strncmp(ent->d_name, "drm:controlD", 12) == 0 ) {
closedir(dir);