mirror of https://github.com/xzeldon/htop.git
Yet another sanity check.
This commit is contained in:
parent
c494308b21
commit
59c3dd806b
1
Vector.c
1
Vector.c
|
@ -63,6 +63,7 @@ void Vector_delete(Vector* this) {
|
|||
#ifdef DEBUG
|
||||
|
||||
static inline bool Vector_isConsistent(Vector* this) {
|
||||
assert(this->items <= this->arraySize);
|
||||
if (this->owner) {
|
||||
for (int i = 0; i < this->items; i++)
|
||||
if (this->array[i] && this->array[i]->class != this->vectorType)
|
||||
|
|
Loading…
Reference in New Issue