summaryrefslogtreecommitdiffstats
path: root/src/ptrarray.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ptrarray.c')
-rw-r--r--src/ptrarray.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ptrarray.c b/src/ptrarray.c
index 8567752..56d28cb 100644
--- a/src/ptrarray.c
+++ b/src/ptrarray.c
@@ -51,11 +51,11 @@ void ptr_array_add(ptrarray_t *pa, void *data)
pa->len++;
}
-void* ptr_array_index(ptrarray_t *pa, size_t index)
+void* ptr_array_index(ptrarray_t *pa, size_t array_index)
{
if (!pa) return NULL;
- if (index >= pa->len) {
+ if (array_index >= pa->len) {
return NULL;
}
- return pa->pdata[index];
+ return pa->pdata[array_index];
}