]> code.delx.au - pulseaudio/commit
alsa: Fix crash when profile_set == NULL
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 14 May 2013 09:01:13 +0000 (11:01 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Tue, 14 May 2013 09:05:24 +0000 (11:05 +0200)
commit0a9a1d7488387cf8ab05b8452195d2cf11388078
treed08b0a0961035c83c8487f25644c195d2b9bddc5
parenta9915752f81e1154d49f66edc60833593ab76477
alsa: Fix crash when profile_set == NULL

Better check if the pointer is NULL before dereferencing it, instead of
after!

BugLink: https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1159853
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/modules/alsa/module-alsa-card.c