diff options
author | Michal Srb <msrb@suse.com> | 2014-11-01 20:00:57 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-11-03 15:28:36 +1000 |
commit | 29c77457ad86966ae2204b865fb8b437269063c4 (patch) | |
tree | e6d9a47abd96b80f037d0eb4ebcc63a403d03fc4 /src/XSelect.c | |
parent | 5810d0797160a97012664ffe719a59e1b288a525 (diff) |
Refactor XGetExtensionVersion.
_XiGetExtensionVersion was called from XGetExtensionVersion and from
_XiCheckExtInit. When called from _XiCheckExtInit, nothing accounted for the
fact that it can return ((XExtensionVersion *) NoSuchExtension) in case of
error. Also it recursively calls _XiCheckExtInit potentionally causing multiple
unlocks if _XiCheckExtInit fails.
-> Remove it and call directly _XiGetExtensionVersionRequest and only call
_XiCheckExtInit only from XGetExtensionVersion.
Signed-off-by: Michal Srb <msrb@suse.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/XSelect.c')
0 files changed, 0 insertions, 0 deletions