From: Michael R Sweet Date: Wed, 6 Oct 2021 15:58:09 +0000 (-0400) Subject: Fix Codacy-detected issue - not using path variable. X-Git-Tag: v2.4b1~23^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d93993cf5423e36e2d80bbda7ba77900ff2f4fb;p=thirdparty%2Fcups.git Fix Codacy-detected issue - not using path variable. --- 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);