mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
c (mrbc_context) may be NULL; fix #3787
This commit is contained in:
@@ -5775,7 +5775,7 @@ mrb_load_exec(mrb_state *mrb, struct mrb_parser_state *p, mrbc_context *c)
|
||||
return mrb_undef_value();
|
||||
}
|
||||
if (!p->tree || p->nerr) {
|
||||
c->parser_nerr = p->nerr;
|
||||
if (c) c->parser_nerr = p->nerr;
|
||||
if (p->capture_errors) {
|
||||
char buf[256];
|
||||
int n;
|
||||
|
||||
Reference in New Issue
Block a user