Skip to content

Commit

Permalink
Correct handling of 'false' booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
bartbes committed Aug 30, 2012
1 parent 1f366c7 commit 68639e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inifile/inifile.lua
Expand Up @@ -63,7 +63,7 @@ function inifile.parse(name, backend)
if tonumber(value) then value = tonumber(value) end
if value == "true" then value = true end
if value == "false" then value = false end
if key and value then
if key and value ~= nil then
t[section][key] = value
end
end
Expand Down

0 comments on commit 68639e4

Please sign in to comment.