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