From e6b99ae374aad5f9dc692942add920775b88f8ac Mon Sep 17 00:00:00 2001 From: Gregor Best Date: Sun, 19 Sep 2010 20:01:17 +0200 Subject: [PATCH] naughty: localize obj Signed-off-by: Gregor Best Signed-off-by: Julien Danjou --- lib/naughty.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 50d20408..3c4315b4 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -298,7 +298,7 @@ function notify(args) -- replace notification if needed if args.replaces_id then - obj = getById(args.replaces_id) + local obj = getById(args.replaces_id) if obj then -- destroy this and ... destroy(obj)