[INTERPRETER]

* BUG: Fix memory leak with Lower$() and Upper$() on some null strings.


git-svn-id: svn://localhost/gambas/trunk@6241 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2014-04-10 21:56:07 +00:00
parent 84a51a739d
commit 9cf45fc40d

View file

@ -371,7 +371,9 @@ void SUBR_upper(ushort code)
SUBR_ENTER_PARAM(1);
if (SUBR_check_string(PARAM))
STRING_void_value(&SP[-1]);
{
VOID_STRING(&SP[-1]);
}
else
{
len = PARAM->_string.len;