From: David Henningsson Date: Fri, 28 Jun 2013 14:16:22 +0000 (+0200) Subject: Revert "alsa-mixer: Add a couple of assertions" X-Git-Tag: accepted/tizen/20131022.162753~239 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=242b8e5fd3a00f984f0506de50825dbf3fbb401d;p=platform%2Fupstream%2Fpulseaudio.git Revert "alsa-mixer: Add a couple of assertions" This reverts commit 2613e4c74733e67d56af165df4637bf902b08508. Please don't replace correct NULL pointer checks with assertions. --- diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c index b2f6c2e..f4410d7 100644 --- a/src/modules/alsa/alsa-mixer.c +++ b/src/modules/alsa/alsa-mixer.c @@ -4530,9 +4530,10 @@ void pa_alsa_path_set_add_ports( pa_alsa_path *path; void *state; - pa_assert(ps); pa_assert(ports); - pa_assert(core); + + if (!ps) + return; PA_HASHMAP_FOREACH(path, ps->paths, state) { if (!path->settings || !path->settings->next) {