Skip to content

Commit 05bf249

Browse files
authored
fix: do not pass by environ to ffmpeg (#5871)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent eae4ca0 commit 05bf249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/utils/ffmpeg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
func ffmpegCommand(args []string) (string, error) {
1313
cmd := exec.Command("ffmpeg", args...) // Constrain this to ffmpeg to permit security scanner to see that the command is safe.
14-
cmd.Env = os.Environ()
14+
cmd.Env = []string{}
1515
out, err := cmd.CombinedOutput()
1616
return string(out), err
1717
}

0 commit comments

Comments
 (0)