Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 6e0d6de

Browse files
authored
Return early if EventPipeBuffer is empty. (#11802)
1 parent 76e9413 commit 6e0d6de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vm/eventpipebuffer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ EventPipeEventInstance* EventPipeBuffer::GetNext(EventPipeEventInstance *pEvent,
154154
{
155155
pNextInstance = (EventPipeEventInstance*)m_pBuffer;
156156
}
157+
else
158+
{
159+
return NULL;
160+
}
157161
}
158162
else
159163
{

0 commit comments

Comments
 (0)