From 0314370eb58303bf0176b3222044bf27739ee5f5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 25 Dec 2018 11:27:22 -0800 Subject: Cache the process binary path and name --- Alc/backends/pulseaudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/backends') diff --git a/Alc/backends/pulseaudio.cpp b/Alc/backends/pulseaudio.cpp index 8428b9d8..16e64cdf 100644 --- a/Alc/backends/pulseaudio.cpp +++ b/Alc/backends/pulseaudio.cpp @@ -406,7 +406,7 @@ pa_context *connect_context(pa_threaded_mainloop *loop, ALboolean silent) { const char *name{"OpenAL Soft"}; - PathNamePair binname = GetProcBinary(); + const PathNamePair &binname = GetProcBinary(); if(!binname.fname.empty()) name = binname.fname.c_str(); -- cgit v1.2.3