aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/pulse_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-26 19:50:02 +0100
committerMax Kellermann <max@duempel.org>2009-03-26 19:50:02 +0100
commitcd4964cdeee41abab7773fc0c9dd6d5592351726 (patch)
treece805b597caa7151fb922c3e3cd22de056d8a6b5 /src/output/pulse_plugin.c
parent74273d419a7157d59682abc9a459cbeb793858c4 (diff)
downloadmpd-cd4964cdeee41abab7773fc0c9dd6d5592351726.tar.gz
mpd-cd4964cdeee41abab7773fc0c9dd6d5592351726.tar.xz
mpd-cd4964cdeee41abab7773fc0c9dd6d5592351726.zip
pulse: don't check config_param!=NULL
The conf.h functions deal well with config_param==NULL and will return the specified default value then.
Diffstat (limited to '')
-rw-r--r--src/output/pulse_plugin.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/output/pulse_plugin.c b/src/output/pulse_plugin.c
index 08ce32365..fdab02599 100644
--- a/src/output/pulse_plugin.c
+++ b/src/output/pulse_plugin.c
@@ -70,10 +70,8 @@ pulse_init(G_GNUC_UNUSED const struct audio_format *audio_format,
pd = pulse_new_data();
pd->name = config_get_block_string(param, "name", "mpd_pulse");
- pd->server = param != NULL
- ? config_dup_block_string(param, "server", NULL) : NULL;
- pd->sink = param != NULL
- ? config_dup_block_string(param, "sink", NULL) : NULL;
+ pd->server = config_dup_block_string(param, "server", NULL);
+ pd->sink = config_dup_block_string(param, "sink", NULL);
return pd;
}