From: Pierre Ossman Date: Fri, 24 Nov 2006 09:29:10 +0000 (+0000) Subject: Fix incorrect assert. X-Git-Tag: 1.0_branch~3112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68bcbd29139df99174e0e7757c540a91b577883f;p=profile%2Fivi%2Fpulseaudio.git Fix incorrect assert. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1416 fefdeb5f-60dc-0310-8127-8f9354f1896f --- diff --git a/src/pulsecore/autoload.c b/src/pulsecore/autoload.c index f686909..8e57d34 100644 --- a/src/pulsecore/autoload.c +++ b/src/pulsecore/autoload.c @@ -102,7 +102,7 @@ int pa_autoload_add(pa_core *c, const char*name, pa_namereg_type_t type, const c int pa_autoload_remove_by_name(pa_core *c, const char*name, pa_namereg_type_t type) { pa_autoload_entry *e; - assert(c && name && type); + assert(c && name && module && (type == PA_NAMEREG_SINK || type == PA_NAMEREG_SOURCE)); if (!c->autoload_hashmap || !(e = pa_hashmap_get(c->autoload_hashmap, name)) || e->type != type) return -1;