Commit 159c9ad2 authored by Abseil Team's avatar Abseil Team Committed by Derek Mauro
Browse files

Googletest export

Avoid segfault on null premature_exit_filepath.

PiperOrigin-RevId: 395965853
parent 955c7f83
......@@ -5038,7 +5038,7 @@ class ScopedPrematureExitFile {
// create the file with a single "0" character in it. I/O
// 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, "w");
FILE* pfile = posix::FOpen(premature_exit_filepath_.c_str(), "w");
fwrite("0", 1, 1, pfile);
fclose(pfile);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment