3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 09:35:32 +00:00

NULL-initialize pointers to help GCC static analyzer Fixes: variable may be used uninitialized

This commit is contained in:
Daniel Schemmel 2018-05-19 03:19:57 +02:00
parent 1cc4a4ccc5
commit 5134c16833
No known key found for this signature in database
GPG key ID: A176732062461ECC
4 changed files with 17 additions and 16 deletions

View file

@ -263,8 +263,8 @@ class solve_eqs_tactic : public tactic {
bool solve_arith_core(app * lhs, expr * rhs, expr * eq, app_ref & var, expr_ref & def, proof_ref & pr) {
SASSERT(m_a_util.is_add(lhs));
bool is_int = m_a_util.is_int(lhs);
expr * a;
expr * v;
expr * a = nullptr;
expr * v = nullptr;
rational a_val;
unsigned num = lhs->get_num_args();
unsigned i;