diff options
Diffstat (limited to 'src/utils/pacmd.c')
-rw-r--r-- | src/utils/pacmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/pacmd.c b/src/utils/pacmd.c index dff9af9d..67d95252 100644 --- a/src/utils/pacmd.c +++ b/src/utils/pacmd.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /*** This file is part of PulseAudio. @@ -65,7 +63,9 @@ int main(PA_GCC_UNUSED int argc, PA_GCC_UNUSED char*argv[]) { memset(&sa, 0, sizeof(sa)); sa.sun_family = AF_UNIX; - cli = pa_runtime_path("cli"); + if (!(cli = pa_runtime_path("cli"))) + goto fail; + pa_strlcpy(sa.sun_path, cli, sizeof(sa.sun_path)); pa_xfree(cli); |