aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index fa88ffbd..ca1f5410 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 2.10 2004/10/07 17:27:00 roberto Exp roberto $ 2** $Id: ldebug.c,v 2.11 2004/12/03 20:35:33 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*/
@@ -477,7 +477,7 @@ static const char *getobjname (CallInfo *ci, int stackpos, const char **name) {
477 } 477 }
478 case OP_GETUPVAL: { 478 case OP_GETUPVAL: {
479 int u = GETARG_B(i); /* upvalue index */ 479 int u = GETARG_B(i); /* upvalue index */
480 *name = getstr(p->upvalues[u]); 480 *name = p->upvalues ? getstr(p->upvalues[u]) : "?";
481 return "upvalue"; 481 return "upvalue";
482 } 482 }
483 case OP_SELF: { 483 case OP_SELF: {