summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/polypcore/namereg.c4
-rw-r--r--src/polypcore/protocol-native.c1
2 files changed, 2 insertions, 3 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;
}
diff --git a/src/polypcore/protocol-native.c b/src/polypcore/protocol-native.c
index ace9db6f..a0fc286d 100644
--- a/src/polypcore/protocol-native.c
+++ b/src/polypcore/protocol-native.c
@@ -1347,7 +1347,6 @@ static void command_get_info(PA_GCC_UNUSED pa_pdispatch *pd, uint32_t command, u
pa_tagstruct *reply;
assert(c && t);
-
if (pa_tagstruct_getu32(t, &idx) < 0 ||
(command != PA_COMMAND_GET_CLIENT_INFO &&
command != PA_COMMAND_GET_MODULE_INFO &&