From 2613e4c74733e67d56af165df4637bf902b08508 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Thu, 27 Jun 2013 18:47:12 +0300 Subject: [PATCH] alsa-mixer: Add a couple of assertions I checked the code to ensure that the assertions hold currently. --- src/modules/alsa/alsa-mixer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c index f4410d74c..b2f6c2e26 100644 --- a/src/modules/alsa/alsa-mixer.c +++ b/src/modules/alsa/alsa-mixer.c @@ -4530,10 +4530,9 @@ void pa_alsa_path_set_add_ports( pa_alsa_path *path; void *state; + pa_assert(ps); pa_assert(ports); - - if (!ps) - return; + pa_assert(core); PA_HASHMAP_FOREACH(path, ps->paths, state) { if (!path->settings || !path->settings->next) {