]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix Codacy-detected issue - not using path variable. 269/head
authorMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 6 Oct 2021 15:58:09 +0000 (11:58 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 6 Oct 2021 15:58:09 +0000 (11:58 -0400)
scheduler/env.c

index 87b9cdd35b1be85922287713c77a57b1012aa00e..6e738c6e2bda72eca00a0c8a5658b4b044a1792c 100644 (file)
@@ -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);