mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-20 19:40:06 +01:00
tools: shut up coverity about a potential close(-1)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
5b13ffb78f
commit
3c85fcb62f
1 changed files with 2 additions and 1 deletions
|
|
@ -435,7 +435,8 @@ main(int argc, char **argv)
|
|||
|
||||
out:
|
||||
libevdev_free(dev);
|
||||
close(fd);
|
||||
if (fd != -1)
|
||||
close(fd);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue