aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lapi.c b/lapi.c
index 7980ead0..fffd7d26 100644
--- a/lapi.c
+++ b/lapi.c
@@ -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}