]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix compilation with assert()
authorTakashi Iwai <tiwai@suse.de>
Mon, 10 Apr 2006 16:31:39 +0000 (18:31 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 10 Apr 2006 16:31:39 +0000 (18:31 +0200)
Fix the position of assert() after the variable declarations.

src/pcm/pcm.c

index c78606bd5091b6bd5f5ee1ed60879f99a1d4d1b0..2358108b136c2f6c6a8ea7e492863cf62bfa8658 100644 (file)
@@ -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)