projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
312c326
)
Treat empty :0.0 identically to unset :0.0 when trying to find a PA server. (Closes...
author
Lennart Poettering
<lennart@poettering.net>
Wed, 23 May 2007 12:32:37 +0000
(12:32 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 23 May 2007 12:32:37 +0000
(12:32 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1443
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/pulse/client-conf-x11.c
patch
|
blob
|
history
diff --git
a/src/pulse/client-conf-x11.c
b/src/pulse/client-conf-x11.c
index
b5ac8d9
..
e8de955
100644
(file)
--- 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))) {