diff --git a/plugins/devel/check-structures-sanity.cpp b/plugins/devel/check-structures-sanity.cpp index 207f452f1..aa4b09d8e 100644 --- a/plugins/devel/check-structures-sanity.cpp +++ b/plugins/devel/check-structures-sanity.cpp @@ -676,10 +676,10 @@ void Checker::check_vector(const ToCheck & item, type_identity *item_identity, b FAIL("vector capacity is non-integer (" << (ucapacity / item_size) << " items plus " << (ucapacity % item_size) << " bytes)"); } - if (item.path.back() == ".bad" && pointer) + if (item.path.back() == ".bad") { - // check pointers but don't check contents - item_identity = nullptr; + // don't check contents + local_ok = false; } if (local_ok && check_access(item, reinterpret_cast(vector.start), item.identity, length) && item_identity)