Skip to content

Commit

Permalink
[NFC][sanitizer] Return nullptr instead of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Apr 15, 2023
1 parent 38d84e3 commit ff35c64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ void ThreadRegistry::QuarantinePush(ThreadContextBase *tctx) {

ThreadContextBase *ThreadRegistry::QuarantinePop() {
if (invalid_threads_.size() == 0)
return 0;
return nullptr;
ThreadContextBase *tctx = invalid_threads_.front();
invalid_threads_.pop_front();
return tctx;
Expand Down

0 comments on commit ff35c64

Please sign in to comment.