summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-02-05 23:49:30 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-02-05 23:49:58 +0200
commit9a6fb44bd9e80bc41d78c58eb6d7bb38cd692672 (patch)
tree50e43fa8092f1b63163dfcd01cec5f4796f61cbf
parent954ff3284ad0a7ffa11ce64b05afedba7d09c713 (diff)
downloadluaotfload-9a6fb44bd9e80bc41d78c58eb6d7bb38cd692672.tar.gz
Fix infinite loop
names.load() calls names.update() without an argument if no font database is found, but the later will call the former if invoked without an argument. Now calling names.update() with an empty names database. fixes #23
-rw-r--r--otfl-font-nms.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index 828359b..d32f22f 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -68,7 +68,7 @@ local function load_names()
else
logs.info([[Font names database not found, generating new one.
This can take several minutes; please be patient.]])
- data = names.update()
+ data = names.update(fontnames_init())
names.save(data)
end
return data