mirror of https://github.com/xzeldon/htop.git
shorten scope of variable.
This commit is contained in:
parent
5b30280810
commit
57b393f783
4
Vector.c
4
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;
|
||||
|
|
Loading…
Reference in New Issue