diff options
author | Bryce Harrington <bryce@osg.samsung.com> | 2017-06-02 19:06:31 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-06-02 19:06:31 -0400 |
commit | e0a6eaeaa3896682a66615d17620d4852d9466ab (patch) | |
tree | b9e539b628be34fb5554c55923d68b03d3587eb5 | |
parent | 179e89d95512ca0284401c50e0f2e0d751c6c839 (diff) | |
download | efl-e0a6eaeaa3896682a66615d17620d4852d9466ab.tar.gz |
ecore-imf-wayland: Check xkb_keysym_to_utf8
Summary:
Coverity reports an error "Calling "xkb_keysym_to_utf8" without checking
return value (as is done elsewhere 4 out of 5 times)."
fixes: cid1375673
Reviewers: zmike
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4936
-rw-r--r-- | src/modules/ecore_imf/wayland/wayland_imcontext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/ecore_imf/wayland/wayland_imcontext.c b/src/modules/ecore_imf/wayland/wayland_imcontext.c index 76bd728db8..ad9b614050 100644 --- a/src/modules/ecore_imf/wayland/wayland_imcontext.c +++ b/src/modules/ecore_imf/wayland/wayland_imcontext.c @@ -614,7 +614,7 @@ text_input_keysym(void *data, snprintf(keyname, sizeof(keyname), "Keysym-%u", sym); memset(string, 0, sizeof(string)); - xkb_keysym_to_utf8(sym, string, 32); + if (!xkb_keysym_to_utf8(sym, string, 32)) return; EINA_LOG_DOM_INFO(_ecore_imf_wayland_log_dom, "key event (key: %s)", |