[pulseaudio-commits] r1443 - /trunk/src/pulse/client-conf-x11.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed May 23 05:32:38 PDT 2007


Author: lennart
Date: Wed May 23 14:32:37 2007
New Revision: 1443

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1443&root=3Dpulseaudio&vi=
ew=3Drev
Log:
Treat empty :0.0 identically to unset :0.0 when trying to find a PA server.=
 (Closes #87)

Modified:
    trunk/src/pulse/client-conf-x11.c

Modified: trunk/src/pulse/client-conf-x11.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulse/client-conf-x11=
.c?rev=3D1443&root=3Dpulseaudio&r1=3D1442&r2=3D1443&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/pulse/client-conf-x11.c (original)
+++ trunk/src/pulse/client-conf-x11.c Wed May 23 14:32:37 2007
@@ -44,7 +44,7 @@
     int ret =3D -1;
     char t[1024];
 =

-    if (!dname && !getenv("DISPLAY"))
+    if (!dname && (!(dname =3D getenv("DISPLAY")) || *dname =3D=3D '\0'))
         goto finish;
 =

     if (!(d =3D XOpenDisplay(dname))) {




More information about the pulseaudio-commits mailing list