summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-07 00:31:17 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-07 00:31:17 +0000
commit44c22b0f24d2cc835d088b9da65cf5ade41a2854 (patch)
tree8e7f028309f4e7532b72cb3a072a90baefcae007 /src
parent3aec4c999217de52ee28beb5dc429e84f25a4cee (diff)
downloadxorg-lib-libdmx-44c22b0f24d2cc835d088b9da65cf5ade41a2854.tar.gz
Coverity #928: Don't dereference screen if it's null.XORG-7_0_99_901
Diffstat (limited to 'src')
-rw-r--r--src/dmx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dmx.c b/src/dmx.c
index 1df28e6..5df1068 100644
--- a/src/dmx.c
+++ b/src/dmx.c
@@ -407,6 +407,9 @@ Bool DMXAddScreen(Display *dpy, const char *displayName, unsigned int mask,
int length;
int paddedLength;
+ if (!screen)
+ return False;
+
DMXCheckExtension(dpy, info, False);
LockDisplay(dpy);