]> granicus.if.org Git - clang/commitdiff
Fix use of uninitialized variable in ExternalASTSourceTest.cpp (introduced in 203525)
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 11 Mar 2014 06:49:26 +0000 (06:49 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 11 Mar 2014 06:49:26 +0000 (06:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203545 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/AST/ExternalASTSourceTest.cpp

index 4622bef24535c09e13a56a53742f1750de36a46b..5cc2defe20fa8f0fb514af0ba33b8ff63b27f49b 100644 (file)
@@ -77,7 +77,7 @@ TEST(ExternalASTSourceTest, FailedLookupOccursOnce) {
     unsigned &Calls;
   };
 
-  unsigned Calls;
+  unsigned Calls = 0;
   ASSERT_TRUE(testExternalASTSource(new TestSource(Calls), "int j, k = j;"));
   EXPECT_EQ(1u, Calls);
 }