aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2026-11-04 11:17:03 +0530
committerSunil Nimmagadda <sunil@nimmagadda.net>2026-11-04 11:17:03 +0530
commit48a0d315f81784d3a12dbb6bb4870281c0db97ae (patch)
tree0412679c05544f0c6bcdf2a4ebe3b6dac14bef86
parentf45ff5c60b7464dc250671d58c969a6320aad9b6 (diff)
Rectify check for header.
-rw-r--r--mkelf.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkelf.lua b/mkelf.lua
index d77ac0f..3e826fc 100644
--- a/mkelf.lua
+++ b/mkelf.lua
@@ -91,7 +91,7 @@ local function main()
i = i + 1
end
local header, segments, sections = loadconfig(infn)
- if next(header) == nil then die("header missing") end
+ if not header then die("header missing") end
if header.phnum == 0 then header.phnum = #segments end
if header.shnum == 0 then header.shnum = #sections end
local out <close> = assert(io.open(outfn, "wb"))