summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pulsecore/dynarray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/dynarray.c b/src/pulsecore/dynarray.c
index d1ab1161..cd1fcb0f 100644
--- a/src/pulsecore/dynarray.c
+++ b/src/pulsecore/dynarray.c
@@ -90,7 +90,7 @@ unsigned pa_dynarray_append(pa_dynarray*a, void *p) {
void *pa_dynarray_get(pa_dynarray*a, unsigned i) {
assert(a);
- if (i >= a->n_allocated)
+ if (i >= a->n_entries)
return NULL;
assert(a->data);