Skip to content

Commit

Permalink
wlserver: fix nullptr dereference on oPoint->pTimeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkautarch authored and misyltoad committed Aug 4, 2024
1 parent e31b8de commit eafd073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wlserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void GamescopeTimelinePoint::Release()

static std::optional<GamescopeAcquireTimelineState> TimelinePointToEventFd( const std::optional<GamescopeTimelinePoint>& oPoint )
{
if (!oPoint)
if (!oPoint || !(oPoint->pTimeline) )
return std::nullopt;

uint64_t uSignalledPoint = 0;
Expand Down

0 comments on commit eafd073

Please sign in to comment.