diff --git a/buddy/ChangeLog b/buddy/ChangeLog index 73c2d10e6..a40dc3e20 100644 --- a/buddy/ChangeLog +++ b/buddy/ChangeLog @@ -1,3 +1,12 @@ +2009-10-01 Alexandre Duret-Lutz + + Fix the previous patch in reorder.c: I missread the + function name in the Clang report... + + * src/reorder.c (reorder_win3): Do initialize THIS. + (reorder_win3ite): Do not initialize THIS, its + initial value is never read. + 2009-09-07 Alexandre Duret-Lutz Fix some issues reported by LLVM/Clang's static analyser. diff --git a/buddy/src/reorder.c b/buddy/src/reorder.c index a7923f473..ab2fc6e82 100644 --- a/buddy/src/reorder.c +++ b/buddy/src/reorder.c @@ -393,7 +393,7 @@ static BddTree *reorder_swapwin3(BddTree *this, BddTree **first) static BddTree *reorder_win3(BddTree *t) { - BddTree *this, *first=t; + BddTree *this=t, *first=t; if (t == NULL) return t; @@ -423,7 +423,7 @@ static BddTree *reorder_win3(BddTree *t) static BddTree *reorder_win3ite(BddTree *t) { - BddTree *this=t, *first=t; + BddTree *this, *first=t; int lastsize; if (t == NULL)