Commit 7cab5a8c authored by Rob Jonson's avatar Rob Jonson Committed by Jean-Baptiste Kempf

avoid crash where vlc.net.stat returns nil for a file (such as alias on mac os)

resending with spaces instead of tabs for indenting.
please backport for 2.0.1
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f89d9b2f
......@@ -396,8 +396,12 @@ getbrowsetable = function ()
local path, name = df, f
local element={}
for k,v in pairs(s) do
element[k]=v
if (s) then
for k,v in pairs(s) do
element[k]=v
end
else
element["type"]="unknown"
end
element["path"]=path
element["name"]=name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment