forked from enlightenment/efl
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
This commit is contained in:
parent
179e89d955
commit
e0a6eaeaa3
|
@ -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)",
|
||||
|
|
Loading…
Reference in New Issue