diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_debug.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_debug.c b/src/lj_debug.c index e6a8be54..bca1d7a5 100644 --- a/src/lj_debug.c +++ b/src/lj_debug.c | |||
@@ -63,6 +63,7 @@ static BCPos debug_framepc(lua_State *L, GCfunc *fn, cTValue *nextframe) | |||
63 | if (cf == NULL || (char *)cframe_pc(cf) == (char *)cframe_L(cf)) | 63 | if (cf == NULL || (char *)cframe_pc(cf) == (char *)cframe_L(cf)) |
64 | return NO_BCPOS; | 64 | return NO_BCPOS; |
65 | ins = cframe_pc(cf); /* Only happens during error/hook handling. */ | 65 | ins = cframe_pc(cf); /* Only happens during error/hook handling. */ |
66 | if (!ins) return NO_BCPOS; | ||
66 | } else { | 67 | } else { |
67 | if (frame_islua(nextframe)) { | 68 | if (frame_islua(nextframe)) { |
68 | ins = frame_pc(nextframe); | 69 | ins = frame_pc(nextframe); |