[vlc-commits] unc: fix fd not initialized

Steve Lhomme git at videolan.org
Mon Jul 15 09:22:32 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jul 10 08:02:02 2019 +0200| [42177733c3d049c4e29001dbf74f2e30442cf972] | committer: Steve Lhomme

unc: fix fd not initialized

It was set on sys->i_smb and used with close().

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=42177733c3d049c4e29001dbf74f2e30442cf972
---

 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
     {



More information about the vlc-commits mailing list