mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
Intialize unused fd variables to -1 (which is actually invalid) instead
of 0 (which is stdin and can cause weird side-effects). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27893 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
@@ -118,7 +118,7 @@ int dvb_open_devices(dvb_priv_t *priv, int n, int demux_cnt)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user