]> git.alsa-project.org Git - alsa-lib.git/commit
conf.c: snd_config_set_id: prevent duplicate ids
authorClemens Ladisch <clemens@ladisch.de>
Fri, 10 Jul 2009 05:25:50 +0000 (07:25 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Fri, 10 Jul 2009 05:25:50 +0000 (07:25 +0200)
commite2317969e140b2c956db38583dcc0d7f3747670f
tree9649c55b260c5ddfa6591fe3e8d736e6b8b8a138
parent2c4b3c7d091b5e7d5202a50e7623971e47221775
conf.c: snd_config_set_id: prevent duplicate ids

snd_config_add() checks for duplicate ids, but it was possible to create
duplicates by adding a note and changing the id afterwards with
snd_config_set_id(); so we have to add a check there, too.

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