diff options
Diffstat (limited to 'lapi.c')
| -rw-r--r-- | lapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -587,6 +587,8 @@ LUA_API const char *lua_pushfstring (lua_State *L, const char *fmt, ...) { | |||
| 587 | ret = luaO_pushvfstring(L, fmt, argp); | 587 | ret = luaO_pushvfstring(L, fmt, argp); |
| 588 | va_end(argp); | 588 | va_end(argp); |
| 589 | luaC_checkGC(L); | 589 | luaC_checkGC(L); |
| 590 | if (ret == NULL) /* error? */ | ||
| 591 | luaD_throw(L, LUA_ERRMEM); | ||
| 590 | lua_unlock(L); | 592 | lua_unlock(L); |
| 591 | return ret; | 593 | return ret; |
| 592 | } | 594 | } |
