diff options
Diffstat (limited to 'tex/context/base/mkiv/data-res.lua')
-rw-r--r-- | tex/context/base/mkiv/data-res.lua | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/data-res.lua b/tex/context/base/mkiv/data-res.lua index cbda21ce2..831ad881c 100644 --- a/tex/context/base/mkiv/data-res.lua +++ b/tex/context/base/mkiv/data-res.lua @@ -1558,11 +1558,21 @@ local function findfiles(filename,filetype,allresults) end function resolvers.findfiles(filename,filetype) - return findfiles(filename,filetype,true) + if not filename or filename == "" then + -- weird ... why called then + return "" + else + return findfiles(filename,filetype,true) + end end function resolvers.findfile(filename,filetype) - return findfiles(filename,filetype,false)[1] or "" + if not filename or filename == "" then + -- weird ... why called then + return "" + else + return findfiles(filename,filetype,false)[1] or "" + end end function resolvers.findpath(filename,filetype) |