Skip to content

Commit 7562465

Browse files
authored
Merge pull request cpputest#1128 from audioscience/analyzer
Clang Static Analyzer - "uninitialized argument value" warning fix
2 parents b536c3c + d65d6a3 commit 7562465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎tests/CppUTest/TestMemoryAllocatorTest.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ TEST(FailableMemoryAllocator, FailFirstAllocationAtGivenLine)
216216

217217
TEST(FailableMemoryAllocator, FailThirdAllocationAtGivenLine)
218218
{
219-
int *memory[10];
219+
int *memory[10] = { NULL };
220220
int allocation;
221221
failableMallocAllocator.failNthAllocAt(3, __FILE__, __LINE__ + 4);
222222

0 commit comments

Comments
 (0)