minor code cleanup

This commit is contained in:
hyunghwan.chung
2018-05-07 17:28:47 +00:00
parent bd52dcf0bc
commit 204a6b16b9
2 changed files with 2 additions and 2 deletions

View File

@ -3885,7 +3885,7 @@ static int start_method (moo_t* moo, moo_oop_method_t method, moo_oow_t nargs)
* is not really failure safe without losing integrity???? */
moo_oop_t tmp;
moo_pushtmp (moo, (moo_oop_t*)&method);
tmp = moo_makestring (moo, moo->errmsg.buf, moo->errmsg.len);
tmp = moo_makestring(moo, moo->errmsg.buf, moo->errmsg.len);
moo_poptmp (moo);
/* [NOTE] carry on even if instantiation fails */
moo->processor->active->perrmsg = tmp? tmp: moo->_nil; /* TODO: set to nil or set to an empty string if instantiation fails? */