From: Jordy Rose Date: Wed, 24 Aug 2011 04:48:19 +0000 (+0000) Subject: [analyzer] Correctly initialize a variable and hopefully fix crashes. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5337612ff47e90979b781b20608fb494ca81869b;p=clang [analyzer] Correctly initialize a variable and hopefully fix crashes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138424 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/CFRefCount.cpp b/lib/StaticAnalyzer/Core/CFRefCount.cpp index ddae5d73a8..12ee0f3d71 100644 --- a/lib/StaticAnalyzer/Core/CFRefCount.cpp +++ b/lib/StaticAnalyzer/Core/CFRefCount.cpp @@ -3584,7 +3584,7 @@ const ProgramState * RetainReleaseChecker::handleSymbolDeath(const ProgramState *state, SymbolRef sid, RefVal V, SmallVectorImpl &Leaked) const { - bool hasLeak; + bool hasLeak = false; if (V.isOwned()) hasLeak = true; else if (V.isNotOwned() || V.isReturnedOwned())