Skip to content
Snippets Groups Projects
Commit cbedc942 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-core: sysconfig: differentiate between nil and empty string

parent c45a0bcd
No related branches found
No related tags found
No related merge requests found
local sysconfigdir = '/lib/gluon/core/sysconfig/' local sysconfigdir = '/lib/gluon/core/sysconfig/'
local function get(_, name) local function get(_, name)
local ret = nil
local f = io.open(sysconfigdir .. name) local f = io.open(sysconfigdir .. name)
if f then if f then
ret = f:read('*line') local ret = f:read('*line')
f:close() f:close()
return (ret or '')
end end
return ret return nil
end end
local function set(_, name, val) local function set(_, name, val)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment