diff options
author | Michal Srb <msrb@suse.com> | 2014-11-01 20:00:53 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-11-03 15:28:35 +1000 |
commit | dc1f8c6ec1ba8135afa185c8e8360c1ed90bf96c (patch) | |
tree | 28adc2871bffd7eaa43f1605dc756891863f145b /src/XGetProp.c | |
parent | 83261c52a17543437882e2863b7f06a92c9039f8 (diff) |
Do not return NoSuchExtension casted to pointer as an error.
Several functions were returning NoSuchExtension casted to a pointer in case of
an error. Often in parallel with returning NULL in case of another error. It is
undocumented and certainly wrong.
Signed-off-by: Michal Srb <msrb@suse.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/XGetProp.c')
-rw-r--r-- | src/XGetProp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XGetProp.c b/src/XGetProp.c index 8c69ef2..a3fa558 100644 --- a/src/XGetProp.c +++ b/src/XGetProp.c @@ -75,7 +75,7 @@ XGetDeviceDontPropagateList( LockDisplay(dpy); if (_XiCheckExtInit(dpy, XInput_Initial_Release, info) == -1) - return ((XEventClass *) NoSuchExtension); + return NULL; GetReq(GetDeviceDontPropagateList, req); req->reqType = info->codes->major_opcode; |