diff options
Diffstat (limited to 'lib/libX11/modules/im/ximcp/imDefLkup.c')
-rw-r--r-- | lib/libX11/modules/im/ximcp/imDefLkup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libX11/modules/im/ximcp/imDefLkup.c b/lib/libX11/modules/im/ximcp/imDefLkup.c index dea7f66d5..dd1adf535 100644 --- a/lib/libX11/modules/im/ximcp/imDefLkup.c +++ b/lib/libX11/modules/im/ximcp/imDefLkup.c @@ -88,7 +88,8 @@ _XimSetEventMaskCallback( if (imid == im->private.proto.imid) { if (icid) { - ic = _XimICOfXICID(im, icid); + if (!(ic = _XimICOfXICID(im, icid))) + return False; _XimProcICSetEventMask(ic, (XPointer)&buf_s[2]); } else { _XimProcIMSetEventMask(im, (XPointer)&buf_s[2]); |