[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Bug report
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 27 May 2003 09:36:26 -0300
(by Tuomo Valkonen):
> The following (admitted erroneous) code causes the lua executable
> (and probably all code that uses the IO library) to segfault:
>
> o=io.open("foo", "w")
> o.close()
Follows a correction:
** liolib.c:
161c161
< if (lua_isnone(L, 1)) {
---
> if (lua_isnone(L, 1) && lua_type(L, lua_upvalueindex(1)) == LUA_TTABLE) {
-- Roberto