From 36f01067bf1453649738082e234d17b9dff60e1b Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 10 Apr 2001 08:52:41 +0000 Subject: [PATCH] Added a few asserts --- src/pcm/pcm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index 32872ec3..a8e0734f 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -1365,6 +1365,10 @@ int snd_pcm_areas_copy(const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_ unsigned int channels, snd_pcm_uframes_t frames, snd_pcm_format_t format) { int width = snd_pcm_format_physical_width(format); + assert(dst_areas); + assert(src_areas); + assert(channels > 0); + assert(frames > 0); while (channels > 0) { unsigned int step = src_areas->step; void *src_addr = src_areas->addr; -- 2.47.1