aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/pulse_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/output/pulse_plugin.c')
-rw-r--r--src/output/pulse_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/pulse_plugin.c b/src/output/pulse_plugin.c
index c6849dbc6..3d9292ac7 100644
--- a/src/output/pulse_plugin.c
+++ b/src/output/pulse_plugin.c
@@ -73,8 +73,8 @@ pulse_init(struct audio_output *ao,
pd = pulse_new_data();
pd->ao = ao;
- pd->server = g_strdup(server->value);
- pd->sink = g_strdup(sink->value);
+ pd->server = server != NULL ? g_strdup(server->value) : NULL;
+ pd->sink = sink != NULL ? g_strdup(sink->value) : NULL;
return pd;
}