diff --git a/HISTORY b/HISTORY index 26a1b6a..0ff7351 100755 --- a/HISTORY +++ b/HISTORY @@ -1,3 +1,6 @@ +Oct. 29 2017 +Fixed a crash bug when access an unnamed array + Oct. 25 2017 Fixed a memory leak with an unexpected value diff --git a/core/my_basic.c b/core/my_basic.c index b2201bd..840ae45 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -9258,7 +9258,8 @@ static _array_t* _search_array_in_scope_chain(mb_interpreter_t* s, _array_t* i, mb_assert(s && i); result = i; - scp = _search_identifier_in_scope_chain(s, 0, result->name, _PATHING_NONE, 0, 0); + if(result->name) + scp = _search_identifier_in_scope_chain(s, 0, result->name, _PATHING_NONE, 0, 0); if(scp) { obj = (_object_t*)scp->data; if(obj && obj->type == _DT_ARRAY) {