lua bugfix

This commit is contained in:
Cloud Wu
2017-08-28 16:06:05 +08:00
parent 9d74307836
commit 932ebfa0fd
2 changed files with 2 additions and 1 deletions

View File

@@ -653,6 +653,7 @@ l_noret luaG_runerror (lua_State *L, const char *fmt, ...) {
CallInfo *ci = L->ci;
const char *msg;
va_list argp;
luaC_checkGC(L); /* error message uses memory */
va_start(argp, fmt);
msg = luaO_pushvfstring(L, fmt, argp); /* format message */
va_end(argp);