[MPlayer-cvslog] r27893 - trunk/stream/dvb_tune.c

reimar subversion at mplayerhq.hu
Tue Nov 4 19:44:14 CET 2008


Author: reimar
Date: Tue Nov  4 19:44:14 2008
New Revision: 27893

Log:
Intialize unused fd variables to -1 (which is actually invalid) instead
of 0 (which is stdin and can cause weird side-effects).


Modified:
   trunk/stream/dvb_tune.c

Modified: trunk/stream/dvb_tune.c
==============================================================================
--- trunk/stream/dvb_tune.c	(original)
+++ trunk/stream/dvb_tune.c	Tue Nov  4 19:44:14 2008
@@ -118,7 +118,7 @@ int dvb_open_devices(dvb_priv_t *priv, i
 		return 0;
 	}
 #ifdef CONFIG_DVB_HEAD
-	priv->sec_fd=0;
+	priv->sec_fd=-1;
 #else
 	priv->sec_fd = open(sec_dev, O_RDWR);
 	if(priv->sec_fd < 0)



More information about the MPlayer-cvslog mailing list