Skip to content

Commit 25a291e

Browse files
authored
Merge pull request #28 from starenka/patch-1
fixing `nil` sent to curl
2 parents 7ac333c + e8bf98e commit 25a291e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

widgets/gmail_all.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ local mail = {
3939
-- {{{ Gmail widget type
4040
local function worker(format, warg)
4141
-- Get info from the Gmail atom feed
42-
local f = io.popen("curl --connect-timeout 1 -m 3 -fsn " .. helpers.shellquote(feed[1]))
42+
local f = io.popen("curl --connect-timeout 1 -m 3 -fsn " .. helpers.shellquote(feed))
4343

4444
-- Could be huge don't read it all at once, info we are after is at the top
4545
local xml = f:read(2000)
4646

47-
if xml ~= nil then
47+
if xml == nil then
4848
return mail
4949
end
5050

0 commit comments

Comments
 (0)