]> granicus.if.org Git - clang/commitdiff
Fix uninitialized variable.
authorTed Kremenek <kremenek@apple.com>
Thu, 13 Nov 2008 05:26:15 +0000 (05:26 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 13 Nov 2008 05:26:15 +0000 (05:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59222 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/LiveVariables.cpp

index 4432ac0a53eed6611b48f9d0e0ee975519dc1ab9..03a4bc7eb1020dfbfd830367e11bd830117b18b6 100644 (file)
@@ -184,7 +184,7 @@ TransferFuncs::BlockStmt_VisitObjCForCollectionStmt(ObjCForCollectionStmt* S) {
   
   // This represents a 'kill' for the variable.
   Stmt* Element = S->getElement();
-  DeclRefExpr *DR;
+  DeclRefExpr *DR = 0;
   VarDecl* VD = 0;
   
   if (DeclStmt* DS = dyn_cast<DeclStmt>(Element))