diff options
author | Max Kellermann <max@duempel.org> | 2009-03-26 19:50:31 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-26 19:50:31 +0100 |
commit | 4343c108b30277a7f26cc280e059fd49d634c47a (patch) | |
tree | 6319e2cea624a7fd53a8b145d902c3a2cd3190e0 /src/mixer/pulse_mixer.c | |
parent | 239e6da442cd539ffa196edf861891e59fee7f7e (diff) | |
download | mpd-4343c108b30277a7f26cc280e059fd49d634c47a.tar.gz mpd-4343c108b30277a7f26cc280e059fd49d634c47a.tar.xz mpd-4343c108b30277a7f26cc280e059fd49d634c47a.zip |
pulse_mixer: removed superfluous initializations
Don't initialize attributes which are only used in an open mixer. As
long as nobody accesses them, their values are uninitialized and
undefined.
Diffstat (limited to '')
-rw-r--r-- | src/mixer/pulse_mixer.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mixer/pulse_mixer.c b/src/mixer/pulse_mixer.c index 100e9958f..9ecf73354 100644 --- a/src/mixer/pulse_mixer.c +++ b/src/mixer/pulse_mixer.c @@ -159,11 +159,7 @@ pulse_mixer_init(const struct config_param *param) { struct pulse_mixer *pm = g_new(struct pulse_mixer,1); mixer_init(&pm->base, &pulse_mixer); - pm->server = NULL; - pm->sink = NULL; - pm->context=NULL; - pm->mainloop=NULL; - pm->output_name=NULL; + pm->online=false; pm->server = config_get_block_string(param, "server", NULL); @@ -177,8 +173,7 @@ static void pulse_mixer_finish(struct mixer *data) { struct pulse_mixer *pm = (struct pulse_mixer *) data; - pm->context = NULL; - pm->mainloop = NULL; + g_free(pm); } |