]> code.delx.au - pulseaudio/commit
card: Don't crash if someone gives NULL name to pa_card_set_profile().
authorTanu Kaskinen <tanuk@iki.fi>
Fri, 8 Jun 2012 16:36:45 +0000 (19:36 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Fri, 29 Jun 2012 11:24:43 +0000 (14:24 +0300)
commit21c6c704383d38125c8208711f292427ac4544ca
tree5d766f3947f38e2cf5dc7ce8db9c8d7e8bf9ea22
parent5f62cf8f409d02984abe574545bc86556b2e94fb
card: Don't crash if someone gives NULL name to pa_card_set_profile().

In my opinion, pa_card_set_profile() should assert that name
is not NULL, and it would be the job of the client interface
to filter out NULLs from the client input, but this is done
this way also when setting sink and source ports, so for
consistency I'll do this this way for now.
src/pulsecore/card.c