mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 21:27:08 +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:
parent
2808f340cd
commit
1efaaef8a6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user