Permalink
Browse files

Correct handling of 'false' booleans

  • Loading branch information...
1 parent 1f366c7 commit 68639e490cb77c9036948317deafdac83e9405ec @bartbes committed Aug 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 inifile/inifile.lua
View
@@ -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

0 comments on commit 68639e4

Please sign in to comment.