Merge branch '2.4'

This commit is contained in:
Petri Lehtinen
2012-12-04 21:23:33 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -511,7 +511,7 @@ int json_array_remove(json_t *json, size_t index)
/* If we're removing the last element, nothing has to be moved */
if(index < array->entries - 1)
array_move(array, index, index + 1, array->entries - index);
array_move(array, index, index + 1, array->entries - index - 1);
array->entries--;