]> git.alsa-project.org Git - alsa-utils.git/commit
alsactl: move alloca out of loop
authorClemens Ladisch <clemens@ladisch.de>
Wed, 26 May 2010 08:18:43 +0000 (10:18 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 12 Sep 2012 13:45:59 +0000 (15:45 +0200)
commit74a91c7b28fdf81d2916a391eaf926abd2bde5db
treeb5b707ac44f511d23379eab8ced4048635e8fedf
parent8ab1458ad43c3129b9f6201740bb387f5681f34c
alsactl: move alloca out of loop

Reserving new space from the stack in every loop iteration is not
necessary, so move the call to snd_ctl_elem_id_alloca outside where it
is executed only once.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
alsactl/state.c