summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/pacmd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/pacmd.c b/src/utils/pacmd.c
index dff9af9d..74560609 100644
--- a/src/utils/pacmd.c
+++ b/src/utils/pacmd.c
@@ -65,7 +65,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);