Commit d16fe011 authored by Jean-Philippe André's avatar Jean-Philippe André

XML: fix two small mistakes in Lua

parent 2a3c9b8e
...@@ -140,7 +140,7 @@ static int vlclua_xml_reader_next_attr( lua_State *L ) ...@@ -140,7 +140,7 @@ static int vlclua_xml_reader_next_attr( lua_State *L )
lua_pushstring( L, xml_ReaderNextAttr( p_reader, &psz_value ) ); lua_pushstring( L, xml_ReaderNextAttr( p_reader, &psz_value ) );
lua_pushstring( L, psz_value ); lua_pushstring( L, psz_value );
return 1; return 2;
} }
void luaopen_xml( lua_State *L ) void luaopen_xml( lua_State *L )
......
...@@ -75,7 +75,7 @@ local function parsexml(stream, errormsg) ...@@ -75,7 +75,7 @@ local function parsexml(stream, errormsg)
table.remove(parents) table.remove(parents)
end end
elseif nodetype == 3 then elseif nodetype == 3 then
table.insert(tree.children, reader:value()) table.insert(tree.children, nodename)
end end
nodetype, nodename = reader:next_node() nodetype, nodename = reader:next_node()
end end
......
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