Commit eb375050 authored by Vladimír Čunát's avatar Vladimír Čunát

policy: shut up a luacheck warning

parent 1e8666cc
Pipeline #46876 failed with stages
in 41 minutes and 6 seconds
......@@ -446,7 +446,7 @@ end
-- Copy a lua string to c. (to knot_mm_t or nil=malloc, zero-terminated)
-- TODO: move to someplace, as a general lua utility.
function string2c(str, mempool)
local function string2c(str, mempool)
if str == nil then return nil end
local result = ffi.C.mm_realloc(mempool, nil, #str + 1, 0)
if result == nil then panic("not enough memory") end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment