[cfe-commits] r138424 - /cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp

Jordy Rose jediknil at belkadan.com
Tue Aug 23 21:48:19 PDT 2011


Author: jrose
Date: Tue Aug 23 23:48:19 2011
New Revision: 138424

URL: http://llvm.org/viewvc/llvm-project?rev=138424&view=rev
Log:
[analyzer] Correctly initialize a variable and hopefully fix crashes.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp?rev=138424&r1=138423&r2=138424&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp Tue Aug 23 23:48:19 2011
@@ -3584,7 +3584,7 @@
 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())





More information about the cfe-commits mailing list