From b3e4152916962f9c750ac61c150b21fbdb788cb6 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 6 Jun 2011 14:56:55 +0200 Subject: pulsecore: Add a couple pa_asserts() on pa_tagstruct* calls. --- src/pulsecore/tagstruct.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pulsecore/tagstruct.c b/src/pulsecore/tagstruct.c index 330b7596..06d23ed3 100644 --- a/src/pulsecore/tagstruct.c +++ b/src/pulsecore/tagstruct.c @@ -228,6 +228,7 @@ void pa_tagstruct_put_channel_map(pa_tagstruct *t, const pa_channel_map *map) { unsigned i; pa_assert(t); + pa_assert(map); extend(t, 2 + (size_t) map->channels); t->data[t->length++] = PA_TAG_CHANNEL_MAP; @@ -242,6 +243,7 @@ void pa_tagstruct_put_cvolume(pa_tagstruct *t, const pa_cvolume *cvolume) { pa_volume_t vol; pa_assert(t); + pa_assert(cvolume); extend(t, 2 + cvolume->channels * sizeof(pa_volume_t)); t->data[t->length++] = PA_TAG_CVOLUME; -- cgit v1.2.3