diff options
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.c,v 1.26 2000/08/07 20:21:34 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 1.27 2000/08/08 18:26:05 roberto Exp roberto $ |
3 | ** Auxiliary functions to manipulate prototypes and closures | 3 | ** Auxiliary functions to manipulate prototypes and closures |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -79,8 +79,6 @@ const char *luaF_getlocalname (const Proto *func, int local_number, int pc) { | |||
79 | int count = 0; | 79 | int count = 0; |
80 | const char *varname = NULL; | 80 | const char *varname = NULL; |
81 | LocVar *lv = func->locvars; | 81 | LocVar *lv = func->locvars; |
82 | if (lv == NULL) | ||
83 | return NULL; | ||
84 | for (; lv->pc != -1 && lv->pc <= pc; lv++) { | 82 | for (; lv->pc != -1 && lv->pc <= pc; lv++) { |
85 | if (lv->varname) { /* register */ | 83 | if (lv->varname) { /* register */ |
86 | if (++count == local_number) | 84 | if (++count == local_number) |