diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2013-07-29 22:13:42 +0200 |
---|---|---|
committer | David Henningsson <david.henningsson@canonical.com> | 2013-08-02 16:25:42 +0200 |
commit | 834d10fe650933cb3841cc972a45ee56a742e0bf (patch) | |
tree | af8c84ee4288354de68d3c27234778df91315362 | |
parent | 193bf997c1f6934bfb79db6c106b656fcdb7a137 (diff) | |
download | pulseaudio-834d10fe650933cb3841cc972a45ee56a742e0bf.tar.gz |
cli: Use pa_xnew0 to save some 0 inits
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
-rw-r--r-- | src/pulsecore/cli.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/pulsecore/cli.c b/src/pulsecore/cli.c index 4f668128f..407173a6d 100644 --- a/src/pulsecore/cli.c +++ b/src/pulsecore/cli.c @@ -82,25 +82,16 @@ pa_cli* pa_cli_new(pa_core *core, pa_iochannel *io, pa_module *m) { if (!client) return NULL; - c = pa_xnew(pa_cli, 1); + c = pa_xnew0(pa_cli, 1); c->core = core; c->client = client; pa_assert_se(c->line = pa_ioline_new(io)); - c->userdata = NULL; - c->eof_callback = NULL; - c->client->kill = client_kill; c->client->userdata = c; pa_ioline_set_callback(c->line, line_callback, c); - c->fail = c->kill_requested = false; - c->defer_kill = 0; - - c->interactive = false; - c->last_line = NULL; - return c; } |