[pulseaudio-commits] r1251 - /trunk/src/pulsecore/dynarray.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Aug 13 13:43:22 PDT 2006


Author: lennart
Date: Sun Aug 13 22:43:22 2006
New Revision: 1251

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1251&root=pulseaudio&view=rev
Log:
minor optimization

Modified:
    trunk/src/pulsecore/dynarray.c

Modified: trunk/src/pulsecore/dynarray.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/dynarray.c?rev=1251&root=pulseaudio&r1=1250&r2=1251&view=diff
==============================================================================
--- trunk/src/pulsecore/dynarray.c (original)
+++ trunk/src/pulsecore/dynarray.c Sun Aug 13 22:43:22 2006
@@ -90,7 +90,7 @@
 
 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);




More information about the pulseaudio-commits mailing list