# HG changeset patch # User reimar # Date 1351712835 0 # Node ID c45cbe0d8ce10d473af9e202036614046c2e091f # Parent 4c2104e9e0d16d11c21f1cdd9ea0be74762eeb24 Only -1 is certain to never be a valid file descriptor. diff -r 4c2104e9e0d1 -r c45cbe0d8ce1 vidix/sysdep/pci_linux.c --- a/vidix/sysdep/pci_linux.c Wed Oct 31 19:44:56 2012 +0000 +++ b/vidix/sysdep/pci_linux.c Wed Oct 31 19:47:15 2012 +0000 @@ -180,7 +180,7 @@ } else { retval = 0xFFFF; } - if (fd > 0) { + if (fd != -1) { close(fd); } return retval;