]> git.alsa-project.org Git - alsa-lib.git/commit
conf.c: snd_config_add: prevent adopting a non-orphan
authorClemens Ladisch <clemens@ladisch.de>
Wed, 15 Jul 2009 09:20:29 +0000 (11:20 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Wed, 15 Jul 2009 09:20:29 +0000 (11:20 +0200)
commit5d56a11a8ec399fe07a19dc17ef73f73a488046e
tree78d2527db55779d326477ea2fd32fb66617698b8
parent76c60af00ae480e84a9ff7774bb983c1ea7f32db
conf.c: snd_config_add: prevent adopting a non-orphan

When adding a configuration node to another, check that the child node
does not already have a parent.  Otherwise, the old parent's children
list would become corrupted.

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