1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-07 14:06:33 +00:00

Removed some old debug code no longer used/needed. Added a new stack dump

function that provides a clean output of the stack with positive
and negative stack indices.
This commit is contained in:
batrick
2008-11-18 23:24:17 +00:00
parent 20cf487b33
commit 085eecbac7
3 changed files with 33 additions and 66 deletions

View File

@@ -557,9 +557,8 @@ int process_getScriptId(lua_State* L, ScriptResult *sr) {
lua_getfield(L, 1, FILENAME);
filename = lua_tostring(L, -1);
if (filename == NULL) {
error("%s: The script's 'filename' entry was changed to:",
SCRIPT_ENGINE);
l_dumpValue(L, -1);
error("%s: The script's 'filename' entry was changed to: %s",
SCRIPT_ENGINE, luaL_typename(L, -1));
return SCRIPT_ENGINE_ERROR;
}
lua_pop(L, 1);