aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/CFRefCount.cpp
diff options
context:
space:
mode:
authorJordy Rose <jediknil@belkadan.com>2011-08-24 04:48:19 +0000
committerJordy Rose <jediknil@belkadan.com>2011-08-24 04:48:19 +0000
commit5337612ff47e90979b781b20608fb494ca81869b (patch)
treec9403be31f3eba509cb40d330b1787cb800c68b4 /lib/StaticAnalyzer/Core/CFRefCount.cpp
parent3f7eb9aa9921fba4ff802d77152941255ce42b53 (diff)
[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
Diffstat (limited to 'lib/StaticAnalyzer/Core/CFRefCount.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/CFRefCount.cpp2
1 files changed, 1 insertions, 1 deletions
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<SymbolRef> &Leaked) const {
- bool hasLeak;
+ bool hasLeak = false;
if (V.isOwned())
hasLeak = true;
else if (V.isNotOwned() || V.isReturnedOwned())