[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
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue