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:
Bryce Harrington 2017-06-02 19:06:31 -04:00 committed by Mike Blumenkrantz
parent 179e89d955
commit e0a6eaeaa3
1 changed files with 1 additions and 1 deletions

View File

@ -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)",