mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Avoid hiding global with parameter. #1834
This commit is contained in:
parent
3c7f2de01b
commit
1059e25a7b
1 changed files with 6 additions and 6 deletions
|
|
@ -142,16 +142,16 @@ static void report(char *prefix)
|
|||
bye("%s: %s.", prefix, errormsg);
|
||||
}
|
||||
|
||||
static int traceback (lua_State *L)
|
||||
static int traceback (lua_State *LL)
|
||||
{
|
||||
const char *msg;
|
||||
msg = lua_tostring(L, 1);
|
||||
msg = lua_tostring(LL, 1);
|
||||
if (msg) {
|
||||
luaL_traceback(L, L, msg, 1);
|
||||
luaL_traceback(LL, LL, msg, 1);
|
||||
} else {
|
||||
if (!lua_isnoneornil(L, 1)) { /* is there an error object? */
|
||||
if (!luaL_callmeta(L, 1, "__tostring")) /* try its 'tostring' metamethod */
|
||||
lua_pushliteral(L, "(no error message)");
|
||||
if (!lua_isnoneornil(LL, 1)) { /* is there an error object? */
|
||||
if (!luaL_callmeta(LL, 1, "__tostring")) /* try its 'tostring' metamethod */
|
||||
lua_pushliteral(LL, "(no error message)");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue