[vlc-devel] [PATCH 3/3] unc: fix fd not initialized
Steve Lhomme
robux4 at ycbcr.xyz
Wed Jul 10 08:02:25 CEST 2019
It was set on sys->i_smb and used with close().
---
modules/access/unc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/access/unc.c b/modules/access/unc.c
index 86d51c463b..f7b6a7be71 100644
--- a/modules/access/unc.c
+++ b/modules/access/unc.c
@@ -347,6 +347,7 @@ static int Open(vlc_object_t *obj)
sys->url = url;
access->pf_readdir = DirRead;
access->pf_control = access_vaDirectoryControlHelper;
+ fd = -1;
}
else
{
--
2.17.1
More information about the vlc-devel
mailing list