Skip to content

Commit

Permalink
Init pointer to nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
acvictor committed Apr 16, 2024
1 parent 8e6b08c commit 230d8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion velox/common/memory/tests/MockSharedArbitratorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ TEST_F(MockSharedArbitrationTest, ensureMemoryPoolMaxCapacity) {
auto requestorOp = addMemoryOp(requestor, testData.isReclaimable);
requestorOp->allocate(testData.allocatedBytes);
std::shared_ptr<MockTask> other;
MockMemoryOperator* otherOp;
MockMemoryOperator* otherOp = nullptr;
if (testData.hasOtherTask) {
other = addTask();
otherOp = addMemoryOp(other, true);
Expand Down

0 comments on commit 230d8bc

Please sign in to comment.