projects
/
platform
/
core
/
uifw
/
libds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc69117
)
libinput: use ds_log_error() which calls 'strerror_r'
38/281438/1
accepted/tizen_7.0_unified
accepted/tizen_7.0_unified_hotfix
tizen_7.0
tizen_7.0_hotfix
accepted/tizen/7.0/unified/20221110.063730
accepted/tizen/7.0/unified/hotfix/20221116.110118
accepted/tizen/unified/20220921.091751
tizen_7.0_m2_release
author
duna.oh
<duna.oh@samsung.com>
Mon, 19 Sep 2022 02:33:35 +0000
(11:33 +0900)
committer
Tizen Window System
<tizen.windowsystem@gmail.com>
Mon, 19 Sep 2022 04:44:29 +0000
(13:44 +0900)
strerror makes no guarantee of thread safety.
It'd better use strerror_r function instead.
Change-Id: I8fe56323b0f81343e7d8082146724a7223cbdebf
src/backend/libinput/backend.c
patch
|
blob
|
history
diff --git
a/src/backend/libinput/backend.c
b/src/backend/libinput/backend.c
index
7a7ed02
..
22c07e0
100644
(file)
--- a/
src/backend/libinput/backend.c
+++ b/
src/backend/libinput/backend.c
@@
-111,7
+111,7
@@
handle_libinput_readable(int fd, uint32_t mask, void *_backend)
ret = libinput_dispatch(backend->libinput_context);
if (ret != 0) {
- ds_log
(DS_ERR, "Failed to dispatch libinput: %s", strerror(-ret)
);
+ ds_log
_errno(DS_ERR, "Failed to dispatch libinput"
);
wl_display_terminate(backend->display);
return 0;
}