diff options
Diffstat (limited to '')
| -rw-r--r-- | lapi.c | 6 |
1 files changed, 1 insertions, 5 deletions
| @@ -593,12 +593,8 @@ LUA_API const char *lua_pushfstring (lua_State *L, const char *fmt, ...) { | |||
| 593 | const char *ret; | 593 | const char *ret; |
| 594 | va_list argp; | 594 | va_list argp; |
| 595 | lua_lock(L); | 595 | lua_lock(L); |
| 596 | va_start(argp, fmt); | 596 | pushvfstring(L, argp, fmt, ret); |
| 597 | ret = luaO_pushvfstring(L, fmt, argp); | ||
| 598 | va_end(argp); | ||
| 599 | luaC_checkGC(L); | 597 | luaC_checkGC(L); |
| 600 | if (ret == NULL) /* error? */ | ||
| 601 | luaD_throw(L, LUA_ERRMEM); | ||
| 602 | lua_unlock(L); | 598 | lua_unlock(L); |
| 603 | return ret; | 599 | return ret; |
| 604 | } | 600 | } |
