From: Tobias Ulmer Date: Mon, 8 Sep 2014 15:48:15 +0000 (+0200) Subject: e2lib.join: detect nil components and throw an error. X-Git-Tag: e2factory-2.3.15rc1~190 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=c9477dcfb0a459776269be90377ab999e1586740;p=e2factory.git e2lib.join: detect nil components and throw an error. Signed-off-by: Tobias Ulmer --- diff --git a/generic/e2lib.lua b/generic/e2lib.lua index 414c193..7cf65c2 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -757,8 +757,10 @@ function e2lib.join(p1, p2, ...) local args = {p1, p2, ...} local buildpath = "" local sepnext = false + local component - for _,component in ipairs(args) do + for i=1,#args do + component = args[i] assert(type(component) == "string") if sepnext then