Skip to content

Commit

Permalink
fix use of arg in ltn12
Browse files Browse the repository at this point in the history
  • Loading branch information
catwell committed Sep 17, 2012
1 parent a402222 commit ffddaf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ltn12.lua
Expand Up @@ -37,7 +37,8 @@ end
-- chains a bunch of filters together
-- (thanks to Wim Couwenberg)
function filter.chain(...)
local n = table.getn(arg)
local arg = {...}
local n = #arg
local top, index = 1, 1
local retry = ""
return function(chunk)
Expand Down Expand Up @@ -185,6 +186,7 @@ end
-- other, as if they were concatenated
-- (thanks to Wim Couwenberg)
function source.cat(...)
local arg = {...}
local src = table.remove(arg, 1)
return function()
while src do
Expand Down

0 comments on commit ffddaf4

Please sign in to comment.