Commit ada681d8 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

[buddy] Fix some issues reported by LLVM/Clang's static analyser.

parent 99533561
2009-09-07 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix some issues reported by LLVM/Clang's static analyser.
* src/bddop.c (bdd_operator_varresize): Do not write into
quantvarset if it could not be allocated.
* src/reorder.c (reorder_win3): Do not initialize THIS, its
initial value is never read.
2009-08-28 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* configure.ac: Switch from Libtool 1.5.x to Libtool 2.x, and
......
......@@ -244,8 +244,8 @@ void bdd_operator_varresize(void)
if ((quantvarset=NEW(int,bddvarnum)) == NULL)
bdd_error(BDD_MEMORY);
memset(quantvarset, 0, sizeof(int)*bddvarnum);
else
memset(quantvarset, 0, sizeof(int)*bddvarnum);
quantvarsetID = 0;
}
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment