[buddy] Fix some issues reported by LLVM/Clang's static analyser.
This commit is contained in:
parent
995335618a
commit
ada681d813
3 changed files with 134 additions and 125 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue