From 32287c7694813b617f8c7ce4be115a5c9c53dfef Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 11 Feb 2025 15:51:25 -0600 Subject: [PATCH] output-lua: rename script directory variable It had a rather generic name of "path", which in Lua usually means a search path, which we'll be adding. --- src/output-lua.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/output-lua.c b/src/output-lua.c index 001404b97f..067d6dbd30 100644 --- a/src/output-lua.c +++ b/src/output-lua.c @@ -58,7 +58,7 @@ * it's parent_ctx->data ptr. */ typedef struct LogLuaMasterCtx_ { - char path[PATH_MAX]; /**< contains script-dir */ + char script_dir[PATH_MAX]; /**< contains script-dir */ } LogLuaMasterCtx; typedef struct LogLuaCtx_ { @@ -625,7 +625,7 @@ static OutputInitResult OutputLuaLogInitSub(ConfNode *conf, OutputCtx *parent_ct const char *dir = ""; if (parent_ctx && parent_ctx->data) { LogLuaMasterCtx *mc = parent_ctx->data; - dir = mc->path; + dir = mc->script_dir; } char path[PATH_MAX] = ""; @@ -702,7 +702,7 @@ static OutputInitResult OutputLuaLogInit(ConfNode *conf) return result; } LogLuaMasterCtx *master_config = output_ctx->data; - strlcpy(master_config->path, dir, sizeof(master_config->path)); + strlcpy(master_config->script_dir, dir, sizeof(master_config->script_dir)); TAILQ_INIT(&output_ctx->submodules); /* check the enables scripts and set them up as submodules */