[pulseaudio-commits] r2474 - /trunk/src/utils/pacmd.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Wed May 21 15:43:23 PDT 2008
Author: lennart
Date: Thu May 22 00:43:22 2008
New Revision: 2474
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2474&root=pulseaudio&view=rev
Log:
properly handle if pa_runtime_path() fails
Modified:
trunk/src/utils/pacmd.c
Modified: trunk/src/utils/pacmd.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/pacmd.c?rev=2474&root=pulseaudio&r1=2473&r2=2474&view=diff
==============================================================================
--- trunk/src/utils/pacmd.c (original)
+++ trunk/src/utils/pacmd.c Thu May 22 00:43:22 2008
@@ -65,7 +65,9 @@
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);
More information about the pulseaudio-commits
mailing list