fix: update value at index and return SUCCESS (#932) (#933)

This commit is contained in:
Yannick Brenning 2022-01-14 21:04:55 +01:00 committed by GitHub
parent f851fbbe2f
commit d017c3ef77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,6 +100,8 @@ int updateValueCArray(CArray *array, int position, int value)
{
if (array->array[position] != 0)
{
array->array[position] = value;
return SUCCESS;
}
else