aboutsummaryrefslogtreecommitdiff
path: root/src/vdf/vdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vdf/vdf.c')
-rw-r--r--src/vdf/vdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdf/vdf.c b/src/vdf/vdf.c
index 3b90a02..bb27a55 100644
--- a/src/vdf/vdf.c
+++ b/src/vdf/vdf.c
@@ -326,7 +326,7 @@ struct vdf_object* vdf_object_index_array_str(const struct vdf_object* o, const
if (!o || !str || o->type != VDF_TYPE_ARRAY)
return NULL;
- for (size_t i = 0; i < o->data.data_array.len; ++i)
+ for (size_t i = o->data.data_array.len; i >= 0; ++i)
{
struct vdf_object* k = o->data.data_array.data_value[i];
if (!strcmp(k->key, str))