From d182a0b1cb2eede12a7e3f902d9f2d374a2a6838 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 13 Aug 2006 20:43:22 +0000 Subject: [PATCH] minor optimization git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1251 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/pulsecore/dynarray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pulsecore/dynarray.c b/src/pulsecore/dynarray.c index d1ab116..cd1fcb0 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); -- 2.7.4