From 48a0d315f81784d3a12dbb6bb4870281c0db97ae Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Wed, 4 Nov 2026 11:17:03 +0530 Subject: Rectify check for header. --- mkelf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = assert(io.open(outfn, "wb")) -- cgit v1.3