summaryrefslogtreecommitdiffstats
path: root/polyp/polyplib-context.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-17 23:45:28 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-17 23:45:28 +0000
commit9ad4aa387ebcae2ec2b9f67f1f04eea89eddc241 (patch)
treec9a8b1a3c1dc250b86cd59e668a4b714b4d22200 /polyp/polyplib-context.c
parent0b9bc039f63fb6173fd1b442a22e12c40797bc92 (diff)
minor stuff
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@217 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-context.c')
-rw-r--r--polyp/polyplib-context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/polyp/polyplib-context.c b/polyp/polyplib-context.c
index 8f6ce6a8..8a7c719c 100644
--- a/polyp/polyplib-context.c
+++ b/polyp/polyplib-context.c
@@ -500,7 +500,8 @@ int pa_context_connect(struct pa_context *c, const char *server, int spawn, cons
if (!server && spawn && c->conf->autospawn && !default_server_is_running())
return context_connect_spawn(c, api);
- server = DEFAULT_SERVER;
+ if (!server)
+ server = DEFAULT_SERVER;
pa_context_ref(c);