aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index 136afc5a..b2675892 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.33 2000/08/11 16:17:28 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.34 2000/08/14 17:46:27 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -253,7 +253,7 @@ int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) {
253 break; 253 break;
254 } 254 }
255 case 'n': { 255 case 'n': {
256 ar->namewhat = getfuncname(L, func, &ar->name); 256 ar->namewhat = (isactive) ? getfuncname(L, func, &ar->name) : NULL;
257 if (ar->namewhat == NULL) 257 if (ar->namewhat == NULL)
258 lua_getname(L, func, ar); 258 lua_getname(L, func, ar);
259 break; 259 break;