summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2011-06-06 14:56:55 +0200
committerColin Guthrie <colin@mageia.org>2011-06-06 21:19:32 +0200
commitb3e4152916962f9c750ac61c150b21fbdb788cb6 (patch)
tree7449b69e3b960e8970086971965d9ae89b55916e
parentb54a43a8cf416da19e11de053c9848b119e34613 (diff)
pulsecore: Add a couple pa_asserts() on pa_tagstruct* calls.
-rw-r--r--src/pulsecore/tagstruct.c2
1 files changed, 2 insertions, 0 deletions
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;