diff options
author | David Henningsson <david.henningsson@canonical.com> | 2015-09-28 14:36:23 +0200 |
---|---|---|
committer | David Henningsson <david.henningsson@canonical.com> | 2015-09-28 14:36:23 +0200 |
commit | 0284363aa1da05859256befae7cbef7dd0154318 (patch) | |
tree | 83d0944e02ff2e8562c69f9ae12dc7452f28e2a1 | |
parent | 772d655de68c31b53b0fd8173c7c9ac997c72e48 (diff) | |
download | pulseaudio-0284363aa1da05859256befae7cbef7dd0154318.tar.gz |
client: Use pa_xnew0 when creating a client
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
-rw-r--r-- | src/pulsecore/client.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pulsecore/client.c b/src/pulsecore/client.c index 003bcf86c..2e6af4773 100644 --- a/src/pulsecore/client.c +++ b/src/pulsecore/client.c @@ -60,7 +60,7 @@ pa_client *pa_client_new(pa_core *core, pa_client_new_data *data) { if (pa_hook_fire(&core->hooks[PA_CORE_HOOK_CLIENT_NEW], data) < 0) return NULL; - c = pa_xnew(pa_client, 1); + c = pa_xnew0(pa_client, 1); c->core = core; c->proplist = pa_proplist_copy(data->proplist); c->driver = pa_xstrdup(pa_path_get_filename(data->driver)); @@ -69,10 +69,6 @@ pa_client *pa_client_new(pa_core *core, pa_client_new_data *data) { c->sink_inputs = pa_idxset_new(NULL, NULL); c->source_outputs = pa_idxset_new(NULL, NULL); - c->userdata = NULL; - c->kill = NULL; - c->send_event = NULL; - pa_assert_se(pa_idxset_put(core->clients, c, &c->index) >= 0); pa_log_info("Created %u \"%s\"", c->index, pa_strnull(pa_proplist_gets(c->proplist, PA_PROP_APPLICATION_NAME))); |