From 242b8e5fd3a00f984f0506de50825dbf3fbb401d Mon Sep 17 00:00:00 2001 From: David Henningsson Date: Fri, 28 Jun 2013 16:16:22 +0200 Subject: [PATCH] Revert "alsa-mixer: Add a couple of assertions" This reverts commit 2613e4c74733e67d56af165df4637bf902b08508. Please don't replace correct NULL pointer checks with assertions. --- src/modules/alsa/alsa-mixer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c index b2f6c2e26..f4410d74c 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) {