From 9a6fb44bd9e80bc41d78c58eb6d7bb38cd692672 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sat, 5 Feb 2011 23:49:30 +0200 Subject: 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 --- otfl-font-nms.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3