Lua: don't die on unspecified detectors
This commit is contained in:
parent
416b52083d
commit
caa740df79
3
hex.c
3
hex.c
|
@ -1037,6 +1037,9 @@ app_lua_chunk_identify (lua_State *L)
|
||||||
struct app_lua_coder *coder;
|
struct app_lua_coder *coder;
|
||||||
while ((coder = str_map_iter_next (&iter)))
|
while ((coder = str_map_iter_next (&iter)))
|
||||||
{
|
{
|
||||||
|
if (coder->ref_detect == LUA_REFNIL)
|
||||||
|
continue;
|
||||||
|
|
||||||
lua_rawgeti (L, LUA_REGISTRYINDEX, coder->ref_detect);
|
lua_rawgeti (L, LUA_REGISTRYINDEX, coder->ref_detect);
|
||||||
|
|
||||||
// Clone the chunk first to reset its read position
|
// Clone the chunk first to reset its read position
|
||||||
|
|
Loading…
Reference in New Issue