diff options
Diffstat (limited to 'loslib.c')
-rw-r--r-- | loslib.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -166,8 +166,6 @@ static int os_tmpname (lua_State *L) { | |||
166 | char buff[LUA_TMPNAMBUFSIZE]; | 166 | char buff[LUA_TMPNAMBUFSIZE]; |
167 | int err; | 167 | int err; |
168 | lua_tmpnam(buff, err); | 168 | lua_tmpnam(buff, err); |
169 | if (err && luaL_resourcetryagain(L)) /* resource failure? */ | ||
170 | lua_tmpnam(buff, err); /* try again */ | ||
171 | if (err) | 169 | if (err) |
172 | return luaL_error(L, "unable to generate a unique filename"); | 170 | return luaL_error(L, "unable to generate a unique filename"); |
173 | lua_pushstring(L, buff); | 171 | lua_pushstring(L, buff); |