From 57b393f78317e6478fe3ed38b913c9082fe4184c Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 21 Apr 2014 19:01:15 -0300 Subject: [PATCH] shorten scope of variable. --- Vector.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Vector.c b/Vector.c index 2d6bae30..f3212f84 100644 --- a/Vector.c +++ b/Vector.c @@ -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;