mirror of
https://github.com/nmap/nmap.git
synced 2025-12-23 16:09:02 +00:00
Avoid hiding global with parameter. #1834
This commit is contained in:
@@ -142,16 +142,16 @@ static void report(char *prefix)
|
|||||||
bye("%s: %s.", prefix, errormsg);
|
bye("%s: %s.", prefix, errormsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int traceback (lua_State *L)
|
static int traceback (lua_State *LL)
|
||||||
{
|
{
|
||||||
const char *msg;
|
const char *msg;
|
||||||
msg = lua_tostring(L, 1);
|
msg = lua_tostring(LL, 1);
|
||||||
if (msg) {
|
if (msg) {
|
||||||
luaL_traceback(L, L, msg, 1);
|
luaL_traceback(LL, LL, msg, 1);
|
||||||
} else {
|
} else {
|
||||||
if (!lua_isnoneornil(L, 1)) { /* is there an error object? */
|
if (!lua_isnoneornil(LL, 1)) { /* is there an error object? */
|
||||||
if (!luaL_callmeta(L, 1, "__tostring")) /* try its 'tostring' metamethod */
|
if (!luaL_callmeta(LL, 1, "__tostring")) /* try its 'tostring' metamethod */
|
||||||
lua_pushliteral(L, "(no error message)");
|
lua_pushliteral(LL, "(no error message)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user