mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 06:50:05 +01:00
test: silence a valgrind warning
(cherry picked from commit 39aea2a8d6)
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1375>
This commit is contained in:
parent
11063aa28b
commit
f2bf1d9aef
1 changed files with 2 additions and 1 deletions
|
|
@ -123,7 +123,8 @@ static void
|
||||||
close_pipes(int fds[_FD_LAST])
|
close_pipes(int fds[_FD_LAST])
|
||||||
{
|
{
|
||||||
for (int i = 0; i < _FD_LAST; i++) {
|
for (int i = 0; i < _FD_LAST; i++) {
|
||||||
fsync(fds[i]);
|
if (fds[i] != -1)
|
||||||
|
fsync(fds[i]);
|
||||||
xclose(&fds[i]);
|
xclose(&fds[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue