From cb53f314f4cd3d60d64c36048f4dfd06f23cea3f Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 14 Jun 2008 14:55:49 +0000 Subject: * Minor cleanups --- libs/core/luasrc/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') 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 -- cgit v1.2.3