summaryrefslogtreecommitdiff
path: root/luaotfload-diagnostics.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-11-04 20:45:27 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2013-11-04 20:45:27 +0100
commit8e65e677bb678de920ea55097b8889b4245c0e15 (patch)
tree52cac208ced2d70bd3b974d9e978d97567a7210a /luaotfload-diagnostics.lua
parent2f0fb9ef09f796e493776e4ffec164fb014e4283 (diff)
downloadluaotfload-8e65e677bb678de920ea55097b8889b4245c0e15.tar.gz
[db] stop exposing the global index object
Diffstat (limited to 'luaotfload-diagnostics.lua')
-rw-r--r--luaotfload-diagnostics.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/luaotfload-diagnostics.lua b/luaotfload-diagnostics.lua
index 2aa09fe..a11f9ea 100644
--- a/luaotfload-diagnostics.lua
+++ b/luaotfload-diagnostics.lua
@@ -54,12 +54,12 @@ end
local check_index = function (errcnt)
out "================= font names =================="
+ local name_index = names.data()
- if not names.data then
- names.data = names.load ()
+ if not name_index then
+ name_index = names.load ()
end
- local namedata = names.data
local mappings = namedata.mappings
if not namedata and namedata.formats and namedata.version then