1
0
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:
kris
2007-12-09 00:50:33 +00:00
parent 5f460f8590
commit 6d09f60956

View File

@@ -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