changeset 27859:6aeb7cc0bba2

Intialize unused fd variables to -1 (which is actually invalid) instead of 0 (which is stdin and can cause weird side-effects).
author reimar
date Tue, 04 Nov 2008 18:44:14 +0000
parents ec0764bddc5a
children c547b2f6d825
files stream/dvb_tune.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/dvb_tune.c	Tue Nov 04 18:42:46 2008 +0000
+++ b/stream/dvb_tune.c	Tue Nov 04 18:44:14 2008 +0000
@@ -118,7 +118,7 @@
 		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)