summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-14 14:55:49 +0000
committerSteven Barth <steven@midlink.org>2008-06-14 14:55:49 +0000
commitcb53f314f4cd3d60d64c36048f4dfd06f23cea3f (patch)
treee09a0778bcb37a2b4fed8672558e8e8afd927c40 /libs
parent3eabbcc19185205dc9c91d90ee884c08156652af (diff)
* Minor cleanups
Diffstat (limited to 'libs')
-rw-r--r--libs/core/luasrc/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/core/luasrc/util.lua b/libs/core/luasrc/util.lua
index fda4563ad3..3a0b2fbfc1 100644
--- a/libs/core/luasrc/util.lua
+++ b/libs/core/luasrc/util.lua
@@ -269,7 +269,7 @@ function threadlocal()
local c = coroutine.running()
local thread = coxpt[c] or c or 0
if not rawget(self, thread) then
- rawset(self, thread, {})
+ return nil
end
return rawget(self, thread)[key]
end