From 3d93993cf5423e36e2d80bbda7ba77900ff2f4fb Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 6 Oct 2021 11:58:09 -0400 Subject: [PATCH] Fix Codacy-detected issue - not using path variable. --- scheduler/env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/env.c b/scheduler/env.c index 87b9cdd35b..6e738c6e2b 100644 --- a/scheduler/env.c +++ b/scheduler/env.c @@ -217,7 +217,7 @@ cupsdUpdateEnv(void) const char *path; // PATH environment variable if ((path = getenv("PATH")) != NULL) - cupsdSetEnvf("PATH", "%s/filter:%s", ServerBin, value); + cupsdSetEnvf("PATH", "%s/filter:%s", ServerBin, path); else #endif /* CUPS_SNAP */ cupsdSetEnvf("PATH", "%s/filter:" CUPS_BINDIR ":" CUPS_SBINDIR ":/bin:/usr/bin", ServerBin); -- 2.47.2