From 9031c8f50fcd19d9ed644eb539dfb0e4a19fb89c Mon Sep 17 00:00:00 2001 From: Tanous Azzi Date: Fri, 17 May 2024 14:28:49 -0300 Subject: [PATCH] Avoid segmentation fault error when searching for mumble binary --- client/binary.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/binary.go b/client/binary.go index 2fd21714..8faa5ff6 100644 --- a/client/binary.go +++ b/client/binary.go @@ -293,7 +293,6 @@ func searchBinaryInSystem() (*binary, error) { } var execCommand = exec.Command -var commandOutput = command.Output var command *exec.Cmd func isThereAnAvailableBinary(path string) *binary { @@ -320,7 +319,7 @@ func isThereAnAvailableBinary(path string) *binary { b.isBundle = isBundle b.shouldBeCopied = !isBundle - output, err := commandOutput() + output, err := command.Output() if len(output) == 0 && err != nil { b.isValid = false b.lastError = errInvalidCommand