[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

@ -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;
}