mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-20 16:10:07 +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,6 +435,7 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
out:
|
out:
|
||||||
libevdev_free(dev);
|
libevdev_free(dev);
|
||||||
|
if (fd != -1)
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue