3
0
Fork 0
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:
Nuno Lopes 2015-06-07 12:07:24 +01:00
parent 2733899c01
commit 6217804ed5

View file

@ -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;
}