mirror of
https://github.com/nmap/nmap.git
synced 2026-08-28 04:25:15 +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:
parent
5f460f8590
commit
6d09f60956
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue