From: Fariborz Jahanian Date: Thu, 3 Jan 2008 20:04:58 +0000 (+0000) Subject: Couple more uninitialized before use warning elimination. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5dc608710de0cb74f5ce9a3aae484bd680a0cb4;p=clang Couple more uninitialized before use warning elimination. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45547 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp index d20be96936..85ccfd7556 100644 --- a/AST/ASTContext.cpp +++ b/AST/ASTContext.cpp @@ -1385,7 +1385,7 @@ bool ASTContext::ObjcQualifiedIdTypesAreCompatible(QualType lhs, return false; unsigned numRhsProtocols = 0; - ObjcProtocolDecl **rhsProtoList; + ObjcProtocolDecl **rhsProtoList = 0; if (rhsQI) { numRhsProtocols = rhsQI->getNumProtocols(); rhsProtoList = rhsQI->getReferencedProtocols(); @@ -1436,7 +1436,7 @@ bool ASTContext::ObjcQualifiedIdTypesAreCompatible(QualType lhs, return false; unsigned numLhsProtocols = 0; - ObjcProtocolDecl **lhsProtoList; + ObjcProtocolDecl **lhsProtoList = 0; if (lhsQI) { numLhsProtocols = lhsQI->getNumProtocols(); lhsProtoList = lhsQI->getReferencedProtocols();