diff options
-rw-r--r-- | hex.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1037,6 +1037,9 @@ app_lua_chunk_identify (lua_State *L) struct app_lua_coder *coder; while ((coder = str_map_iter_next (&iter))) { + if (coder->ref_detect == LUA_REFNIL) + continue; + lua_rawgeti (L, LUA_REGISTRYINDEX, coder->ref_detect); // Clone the chunk first to reset its read position |