diff options
Diffstat (limited to 'macros/luatex/generic/lualibs/lualibs-file.lua')
-rw-r--r-- | macros/luatex/generic/lualibs/lualibs-file.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/luatex/generic/lualibs/lualibs-file.lua b/macros/luatex/generic/lualibs/lualibs-file.lua index d0af94f09d..9f8fd65483 100644 --- a/macros/luatex/generic/lualibs/lualibs-file.lua +++ b/macros/luatex/generic/lualibs/lualibs-file.lua @@ -456,7 +456,7 @@ function file.join(one, two, three, ...) if not two then return one == "" and one or lpegmatch(reslasher,one) end - if one == "" then + if not one or one == "" then return lpegmatch(stripper,three and concat({ two, three, ... },"/") or two) end if lpegmatch(isnetwork,one) then |