summaryrefslogtreecommitdiff
path: root/src/XOpenDev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XOpenDev.c')
-rw-r--r--src/XOpenDev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XOpenDev.c b/src/XOpenDev.c
index e784f8b..029dec2 100644
--- a/src/XOpenDev.c
+++ b/src/XOpenDev.c
@@ -73,7 +73,7 @@ XOpenDevice(
LockDisplay(dpy);
if (_XiCheckExtInit(dpy, XInput_Initial_Release, info) == -1)
- return ((XDevice *) NoSuchExtension);
+ return NULL;
GetReq(OpenDevice, req);
req->reqType = info->codes->major_opcode;