summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-03-25 02:39:41 +0100
committerLennart Poettering <lennart@poettering.net>2009-03-25 02:39:41 +0100
commit577259bb15ebf3ddc0586476b5f945b055895ba5 (patch)
tree965a8d63d7af151e0d526b2eb7f08fe129069673
parent119698ae91dfe525c1934d0d4035d2c6250ad79c (diff)
trivial simplification
-rw-r--r--src/pulsecore/protocol-esound.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pulsecore/protocol-esound.c b/src/pulsecore/protocol-esound.c
index 2b80c65f..83d39929 100644
--- a/src/pulsecore/protocol-esound.c
+++ b/src/pulsecore/protocol-esound.c
@@ -1105,8 +1105,7 @@ static int do_read(connection *c) {
pa_scache_add_item(c->protocol->core, c->scache.name, &c->scache.sample_spec, NULL, &c->scache.memchunk, c->client->proplist, &idx);
pa_memblock_unref(c->scache.memchunk.memblock);
- c->scache.memchunk.memblock = NULL;
- c->scache.memchunk.index = c->scache.memchunk.length = 0;
+ pa_memchunk_reset(&c->scache.memchunk);
pa_xfree(c->scache.name);
c->scache.name = NULL;