From: Jaroslav Kysela Date: Tue, 10 Apr 2001 08:52:41 +0000 (+0000) Subject: Added a few asserts X-Git-Tag: v1.0.3~893 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=36f01067bf1453649738082e234d17b9dff60e1b;p=alsa-lib.git Added a few asserts --- 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;