Commit 57b393f7 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

shorten scope of variable.

parent 5b302808
Showing with 1 addition and 3 deletions
+1 -3
......@@ -85,10 +85,8 @@ int Vector_count(Vector* this) {
void Vector_prune(Vector* this) {
assert(Vector_isConsistent(this));
int i;
if (this->owner) {
for (i = 0; i < this->items; i++)
for (int i = 0; i < this->items; i++)
if (this->array[i]) {
Object_delete(this->array[i]);
//this->array[i] = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment