fixing `nil` sent to curl

This commit is contained in:
starenka 2017-02-15 16:35:18 +01:00 committed by GitHub
parent 7ac333c571
commit 6ec9977851
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ local mail = {
-- {{{ Gmail widget type -- {{{ Gmail widget type
local function worker(format, warg) local function worker(format, warg)
-- Get info from the Gmail atom feed -- Get info from the Gmail atom feed
local f = io.popen("curl --connect-timeout 1 -m 3 -fsn " .. helpers.shellquote(feed[1])) local f = io.popen("curl --connect-timeout 1 -m 3 -fsn " .. helpers.shellquote(feed))
-- Could be huge don't read it all at once, info we are after is at the top -- Could be huge don't read it all at once, info we are after is at the top
local xml = f:read(2000) local xml = f:read(2000)