diff options
| author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2026-10-30 17:19:38 +0530 |
|---|---|---|
| committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2026-10-30 17:19:38 +0530 |
| commit | fce1d5be19d81b144fdd242799dc699ee1291369 (patch) | |
| tree | 8b5e724702002ba1f0024c74017d40c6438ad83a /mkelf.lua | |
| parent | 91fe7eab0aa3e91bb694d6dd86f87dc7d0305364 (diff) | |
Type check individual segment/section entry.
Diffstat (limited to 'mkelf.lua')
| -rw-r--r-- | mkelf.lua | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -43,6 +43,9 @@ local function loadconfig(fn) error("segments must be a table", 2) end for _, segment in ipairs(t) do + if type(segment) ~= "table" then + error("segment must be a table", 2) + end segment = setmetatable(segment, segment_mt) segment:normalize() segment:validate() @@ -54,6 +57,9 @@ local function loadconfig(fn) error("sections must be a table", 2) end for _, section in ipairs(t) do + if type(section) ~= "table" then + error("section must be a table", 2) + end section = setmetatable(section, section_mt) section:normalize() section:validate() |
