summaryrefslogtreecommitdiffstats
path: root/Vector.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-04-21 19:01:15 -0300
committerHisham Muhammad <hisham@gobolinux.org>2014-04-21 19:01:15 -0300
commit57b393f78317e6478fe3ed38b913c9082fe4184c (patch)
treee3456c3a9a695e78cc1df1198d6505af14ca7159 /Vector.c
parent5b302808108290928cdd0c526462ba0dfbaad8f5 (diff)
shorten scope of variable.
Diffstat (limited to 'Vector.c')
-rw-r--r--Vector.c4
1 files changed, 1 insertions, 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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy