]> code.delx.au - pulseaudio/blobdiff - src/pulsecore/dynarray.c
Don't abort config loading when the user specific cannot be loaded.
[pulseaudio] / src / pulsecore / dynarray.c
index d1ab116100766f1d46c859134465ebbf31e048b9..91a9d5e108e0239aea43c54f57a09b83fd182e18 100644 (file)
@@ -2,17 +2,17 @@
 
 /***
   This file is part of PulseAudio.
+
   PulseAudio is free software; you can redistribute it and/or modify
   it under the terms of the GNU Lesser General Public License as
   published by the Free Software Foundation; either version 2.1 of the
   License, or (at your option) any later version.
+
   PulseAudio is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
   Lesser General Public License for more details.
+
   You should have received a copy of the GNU Lesser General Public
   License along with PulseAudio; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
@@ -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);