Skip to content

Commit

Permalink
remove last ref
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Jan 8, 2025
1 parent 207e514 commit d810c9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ TEST_F(RtsanFileTest, SetbufDieWhenRealtime) {
FILE *f = fopen(GetTemporaryFilePath(), "w");
EXPECT_THAT(f, Ne(nullptr));

auto Func = [f, &buffer]() { setbuf(f, buffer); };
auto Func = [f, buffer]() { setbuf(f, (char *)buffer); };

ExpectRealtimeDeath(Func, "setbuf");
ExpectNonRealtimeSurvival(Func);
Expand Down

0 comments on commit d810c9e

Please sign in to comment.