diff options
Diffstat (limited to 'src/polypcore/namereg.c')
-rw-r--r-- | src/polypcore/namereg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/polypcore/namereg.c b/src/polypcore/namereg.c index d4dbd14b..9229a0f9 100644 --- a/src/polypcore/namereg.c +++ b/src/polypcore/namereg.c @@ -127,7 +127,7 @@ void* pa_namereg_get(pa_core *c, const char *name, pa_namereg_type_t type, int a return NULL; if (c->namereg && (e = pa_hashmap_get(c->namereg, name))) - if (e->type == e->type) + if (e->type == type) return e->data; if (pa_atou(name, &idx) < 0) { @@ -136,7 +136,7 @@ void* pa_namereg_get(pa_core *c, const char *name, pa_namereg_type_t type, int a pa_autoload_request(c, name, type); if (c->namereg && (e = pa_hashmap_get(c->namereg, name))) - if (e->type == e->type) + if (e->type == type) return e->data; } |