Skip to content

Commit

Permalink
fix: add missing return in removeValueCArray
Browse files Browse the repository at this point in the history
  • Loading branch information
honey-yogurt committed Dec 23, 2023
1 parent e5dad3f commit aa034f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data_structures/array/carray.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ int removeValueCArray(CArray *array, int position)
if (array->array[position] != 0)
{
array->array[position] = 0;
return SUCCESS;
}
else
return POSITION_EMPTY;
Expand Down

0 comments on commit aa034f9

Please sign in to comment.