Merge d844fa23a0bc0630e3588a48154c0c51228d39c0 into 7140cd416cecd7462a8aae488024abeee55598e4

This commit is contained in:
Hoyong Lee / 이호용 2026-06-02 21:56:22 -04:00 committed by GitHub
commit 945613719b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5173,8 +5173,10 @@ class ScopedPrematureExitFile {
// errors are ignored as there's nothing better we can do and we
// don't want to fail the test because of this.
FILE* pfile = posix::FOpen(premature_exit_filepath_.c_str(), "w");
fwrite("0", 1, 1, pfile);
fclose(pfile);
if (pfile != nullptr) {
fwrite("0", 1, 1, pfile);
fclose(pfile);
}
}
}