diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-05-23 12:32:37 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-05-23 12:32:37 +0000 |
commit | 0e53f939c011a5f2ebc15658029f0a578e0bd68f (patch) | |
tree | 98ebdb1c27eab8726d70da307d94adb62abde24b /src/pulse | |
parent | 312c326def9b4cc20642ea8f2692d4f2da1406ad (diff) |
Treat empty :0.0 identically to unset :0.0 when trying to find a PA server. (Closes #87)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1443 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulse')
-rw-r--r-- | src/pulse/client-conf-x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulse/client-conf-x11.c b/src/pulse/client-conf-x11.c index b5ac8d9f..e8de9553 100644 --- a/src/pulse/client-conf-x11.c +++ b/src/pulse/client-conf-x11.c @@ -44,7 +44,7 @@ int pa_client_conf_from_x11(pa_client_conf *c, const char *dname) { int ret = -1; char t[1024]; - if (!dname && !getenv("DISPLAY")) + if (!dname && (!(dname = getenv("DISPLAY")) || *dname == '\0')) goto finish; if (!(d = XOpenDisplay(dname))) { |