diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-04-21 19:01:15 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-04-21 19:01:15 -0300 |
commit | 57b393f78317e6478fe3ed38b913c9082fe4184c (patch) | |
tree | e3456c3a9a695e78cc1df1198d6505af14ca7159 /Vector.c | |
parent | 5b302808108290928cdd0c526462ba0dfbaad8f5 (diff) |
shorten scope of variable.
Diffstat (limited to 'Vector.c')
-rw-r--r-- | Vector.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |