diff options
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/memchunk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pulsecore/memchunk.c b/src/pulsecore/memchunk.c index 16a9c140..e6ad3bf8 100644 --- a/src/pulsecore/memchunk.c +++ b/src/pulsecore/memchunk.c @@ -69,8 +69,7 @@ pa_memchunk* pa_memchunk_make_writable(pa_memchunk *c, size_t min) { pa_memchunk* pa_memchunk_reset(pa_memchunk *c) { pa_assert(c); - c->memblock = NULL; - c->length = c->index = 0; + memset(c, 0, sizeof(*c)); return c; } |