You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2016/12/09 22:24:04 UTC

[2/2] incubator-ponymail git commit: Localise variable creation

Localise variable creation

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/15170873
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/15170873
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/15170873

Branch: refs/heads/master
Commit: 1517087335b5cd305889aa346426a3c69bc54b96
Parents: 905ad9b
Author: Sebb <se...@apache.org>
Authored: Fri Dec 9 22:23:53 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Fri Dec 9 22:23:53 2016 +0000

----------------------------------------------------------------------
 site/api/pminfo.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/15170873/site/api/pminfo.lua
----------------------------------------------------------------------
diff --git a/site/api/pminfo.lua b/site/api/pminfo.lua
index 4215a54..408b112 100644
--- a/site/api/pminfo.lua
+++ b/site/api/pminfo.lua
@@ -33,7 +33,6 @@ function handle(r)
     end
     local DD = 14
     local MAXRESULTS = 10000
-    local listdata = {}
 
     
     local NOWISH = math.floor(os.time() / 1800)
@@ -335,6 +334,7 @@ function handle(r)
     tnow = r:clock()
     
     JSON.encode_max_depth(500)
+    local listdata = {}
     listdata.max = MAXRESULTS
     listdata.no_threads = #threads
     listdata.hits = h