From: Takashi Iwai Date: Mon, 10 Apr 2006 16:31:39 +0000 (+0200) Subject: Fix compilation with assert() X-Git-Tag: v1.0.11rc5~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=69dda2f660fb60254ebad17fe83eed2f1913995d;p=alsa-lib.git Fix compilation with assert() Fix the position of assert() after the variable declarations. --- diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index c78606bd..2358108b 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -7269,10 +7269,10 @@ int snd_pcm_get_params(snd_pcm_t *pcm, snd_pcm_uframes_t *buffer_size, snd_pcm_uframes_t *period_size) { - assert(pcm); snd_pcm_hw_params_t *hw; int err; + assert(pcm); snd_pcm_hw_params_alloca(&hw); err = snd_pcm_hw_params_current(pcm, hw); if (err < 0)