[MPlayer-cvslog] r35311 - trunk/vidix/sysdep/pci_linux.c
    reimar 
    subversion at mplayerhq.hu
       
    Wed Oct 31 20:47:15 CET 2012
    
    
  
Author: reimar
Date: Wed Oct 31 20:47:15 2012
New Revision: 35311
Log:
Only -1 is certain to never be a valid file descriptor.
Modified:
   trunk/vidix/sysdep/pci_linux.c
Modified: trunk/vidix/sysdep/pci_linux.c
==============================================================================
--- trunk/vidix/sysdep/pci_linux.c	Wed Oct 31 20:44:56 2012	(r35310)
+++ trunk/vidix/sysdep/pci_linux.c	Wed Oct 31 20:47:15 2012	(r35311)
@@ -180,7 +180,7 @@ static int pci_get_vendor(
     } else {
 	    retval = 0xFFFF;
     }
-    if (fd > 0) {
+    if (fd != -1) {
 	    close(fd);
     }
     return retval;
    
    
More information about the MPlayer-cvslog
mailing list