summaryrefslogtreecommitdiff
path: root/src/lib/efl_wl/efl_wl.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-07-12 12:00:52 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-07-12 11:59:20 -0400
commit8c2afaf251d5b65c82723be22ba2c23913343bef (patch)
tree74064fe136678c489ad959fc9fd06b05d7888b03 /src/lib/efl_wl/efl_wl.c
parent98e14ef3d496c2665395f8d8cf84b35a47739154 (diff)
efl_wl: check mkstemp return
CID 1377533
Diffstat (limited to '')
-rw-r--r--src/lib/efl_wl/efl_wl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c
index 6f9dd313d2..99509deda5 100644
--- a/src/lib/efl_wl/efl_wl.c
+++ b/src/lib/efl_wl/efl_wl.c
@@ -3466,6 +3466,14 @@ seat_keymap_update(Comp_Seat *s)
3466 str = xkb_map_get_as_string(s->kbd.keymap); 3466 str = xkb_map_get_as_string(s->kbd.keymap);
3467 s->kbd.keymap_mem_size = strlen(str) + 1; 3467 s->kbd.keymap_mem_size = strlen(str) + 1;
3468 s->kbd.keymap_fd = eina_file_mkstemp("comp-keymapXXXXXX", &file); 3468 s->kbd.keymap_fd = eina_file_mkstemp("comp-keymapXXXXXX", &file);
3469 if (s->kbd.keymap_fd < 0)
3470 {
3471 EINA_LOG_ERR("mkstemp failed!\n");
3472 s->kbd.keymap_fd = -1;
3473 xkb_state_unref(s->kbd.state);
3474 s->kbd.state = NULL;
3475 return;
3476 }
3469 if (!eina_file_close_on_exec(s->kbd.keymap_fd, 1)) 3477 if (!eina_file_close_on_exec(s->kbd.keymap_fd, 1))
3470 { 3478 {
3471 EINA_LOG_ERR("Failed to set CLOEXEC on fd %d\n", s->kbd.keymap_fd); 3479 EINA_LOG_ERR("Failed to set CLOEXEC on fd %d\n", s->kbd.keymap_fd);