Skip to content

Commit

Permalink
*DO NOT* rely on the value of uninitialized memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
DHowett committed Nov 30, 2016
1 parent 8c7d254 commit 5afebc1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/unittests/CoreGraphics/CGContextTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,6 @@ virtual void SetUp() {
// Check the canvas context pixel before drawing
BYTE* dataPtr = static_cast<BYTE*>(CGBitmapContextGetData(context.get()));
ASSERT_NE(dataPtr, nullptr);
EXPECT_EQ(dataPtr[0], 0xcd);

// Draw the image into the canvas context
CGContextDrawImage(context.get(), bounds, cgImage.get());
Expand Down Expand Up @@ -483,7 +482,6 @@ virtual void SetUp() {
// Check the canvas context pixel before drawing
BYTE* dataPtr = static_cast<BYTE*>(CGBitmapContextGetData(context.get()));
ASSERT_NE(dataPtr, nullptr);
EXPECT_EQ(dataPtr[0], 0xcd);

// Draw the image into the canvas context
CGContextDrawImage(context.get(), bounds, image.get());
Expand Down

0 comments on commit 5afebc1

Please sign in to comment.