diff options
Diffstat (limited to 'src/lj_parse.c')
-rw-r--r-- | src/lj_parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_parse.c b/src/lj_parse.c index 000772fe..1de07e92 100644 --- a/src/lj_parse.c +++ b/src/lj_parse.c | |||
@@ -317,6 +317,7 @@ GCstr *lj_parse_keepstr(LexState *ls, const char *str, size_t len) | |||
317 | GCstr *s = lj_str_new(L, str, len); | 317 | GCstr *s = lj_str_new(L, str, len); |
318 | TValue *tv = lj_tab_setstr(L, ls->fs->kt, s); | 318 | TValue *tv = lj_tab_setstr(L, ls->fs->kt, s); |
319 | if (tvisnil(tv)) setboolV(tv, 1); /* Anchor string to avoid GC. */ | 319 | if (tvisnil(tv)) setboolV(tv, 1); /* Anchor string to avoid GC. */ |
320 | lj_gc_check(L); | ||
320 | return s; | 321 | return s; |
321 | } | 322 | } |
322 | 323 | ||