From d692211debf69a812076e6a9186e94e03f4e269c Mon Sep 17 00:00:00 2001 From: Wang Renxin Date: Mon, 11 Jan 2016 11:54:31 +0800 Subject: [PATCH] *fixed a crash bug when a do-until statement is the end of a program. --- HISTORY | 3 +++ core/my_basic.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index cabf1a2..739009d 100755 --- a/HISTORY +++ b/HISTORY @@ -1,3 +1,6 @@ +Jan. 11 2016 +Fixed a crash bug when a DO-UNTIL statement is the end of a program + Jan. 9 2016 Developing lambda, improved error handling Developing lambda, fixed an issue with only a PRINT statement diff --git a/core/my_basic.c b/core/my_basic.c index 17ce171..6bb97fe 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -11444,7 +11444,8 @@ _loop_begin: if(loop_cond_ptr->data.integer) { /* End looping */ - _skip_to(s, &ast, 0, _DT_EOS); + if(ast) + _skip_to(s, &ast, 0, _DT_EOS); goto _exit; } else {