mirror of
https://github.com/nmap/nmap.git
synced 2026-01-23 22:59:20 +00:00
From r6465, pass 0 as the third arg of lua_gc() instead of NULL. gcc gave me a warning because the argument is an int and not a pointer. I grepped in liblua/ and saw usage in there using 0 as well.
This commit is contained in:
@@ -299,7 +299,7 @@ int process_mainloop(lua_State* l) {
|
||||
}
|
||||
|
||||
SCRIPT_ENGINE_TRY(process_finalize(l, current.registry_idx));
|
||||
SCRIPT_ENGINE_TRY(lua_gc(l, LUA_GCCOLLECT,NULL));
|
||||
SCRIPT_ENGINE_TRY(lua_gc(l, LUA_GCCOLLECT, 0));
|
||||
} else {
|
||||
// this script returned because of an error
|
||||
// print the failing reason if the verbose level is high enough
|
||||
|
||||
Reference in New Issue
Block a user