util.hmac: Fix a global set

Sun, 05 Jul 2009 17:06:22 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 05 Jul 2009 17:06:22 +0100
changeset 1481
6401460891b2
parent 1480
93d3295fb064
child 1482
9734231a569f

util.hmac: Fix a global set

util/hmac.lua file | annotate | diff | comparison | revisions
--- a/util/hmac.lua	Sun Jul 05 20:40:31 2009 +0500
+++ b/util/hmac.lua	Sun Jul 05 17:06:22 2009 +0100
@@ -4,7 +4,7 @@
 module "hmac"
 
 local function arraystr(array)
-    t = {}
+    local t = {}
     for i = 1,table.getn(array) do
         table.insert(t, string.char(array[i]))
     end

mercurial