mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
fix another UB in bit_vector
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
This commit is contained in:
parent
2733899c01
commit
6217804ed5
|
@ -94,7 +94,8 @@ public:
|
|||
}
|
||||
|
||||
void reset() {
|
||||
memset(m_data, 0, m_capacity * sizeof(unsigned));
|
||||
if (m_data)
|
||||
memset(m_data, 0, m_capacity * sizeof(unsigned));
|
||||
m_num_bits = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue