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

This commit is contained in:
Alexandre Duret-Lutz 2009-09-07 17:42:04 +02:00
parent 995335618a
commit ada681d813
3 changed files with 134 additions and 125 deletions

View file

@ -1,3 +1,12 @@
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

View file

@ -244,7 +244,7 @@ void bdd_operator_varresize(void)
if ((quantvarset=NEW(int,bddvarnum)) == NULL)
bdd_error(BDD_MEMORY);
else
memset(quantvarset, 0, sizeof(int)*bddvarnum);
quantvarsetID = 0;
}

View file

@ -393,7 +393,7 @@ static BddTree *reorder_swapwin3(BddTree *this, BddTree **first)
static BddTree *reorder_win3(BddTree *t)
{
BddTree *this=t, *first=t;
BddTree *this, *first=t;
if (t == NULL)
return t;