diff options
| author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2026-11-04 11:17:03 +0530 |
|---|---|---|
| committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2026-11-04 11:17:03 +0530 |
| commit | 48a0d315f81784d3a12dbb6bb4870281c0db97ae (patch) | |
| tree | 0412679c05544f0c6bcdf2a4ebe3b6dac14bef86 | |
| parent | f45ff5c60b7464dc250671d58c969a6320aad9b6 (diff) | |
Rectify check for header.
| -rw-r--r-- | mkelf.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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")) |
