Merge Tobias's fancy SASL branch->trunk
[prosody.git] / util / ztact.lua
index c329a68535eca7c00e36f8bc0bd2b5933d84c644..2507bf8e0107fadc90c93cf23de6a522503f7fee 100644 (file)
@@ -1,4 +1,4 @@
--- Prosody IM v0.2
+-- Prosody IM
 -- This file is included with Prosody IM. It has modifications,
 -- which are hereby placed in the public domain.
 
@@ -114,7 +114,7 @@ function tohex (s)    -- - - - - - - - - - - - - - - - - - - - - - - - -  tohex
 
 function tostring_r (d, indent, tab0)    -- - - - - - - - - - - - -  tostring_r
 
-  tab1 = tab0 or {}
+  local tab1 = tab0 or {}
   local rep = string.rep ('  ', indent or 0)
   if type (d) == 'table' then
     for k,v in pairs (d) do
@@ -210,7 +210,7 @@ function enqueue (queue, element)    -- - - - - - - - - - - - - - - - - enqueue
 
 
 local function test_queue ()
-  t = {}
+  local t = {}
   enqueue (t, 1)
   enqueue (t, 2)
   enqueue (t, 3)