diff options
author | Abseil Team <absl-team@google.com> | 2021-09-10 14:07:55 -0400 |
---|---|---|
committer | Derek Mauro <dmauro@google.com> | 2021-09-14 10:15:17 -0400 |
commit | 159c9ad23e8b276e8c975bb8621c81d4df5fd863 (patch) | |
tree | 6b44270288a58cb0edefb65adb6d04c2aa58d624 /googletest | |
parent | 955c7f837efad184ec63e771c42542d37545eaef (diff) | |
download | googletest-git-159c9ad23e8b276e8c975bb8621c81d4df5fd863.tar.gz |
Googletest export
Avoid segfault on null premature_exit_filepath.
PiperOrigin-RevId: 395965853
Diffstat (limited to 'googletest')
-rw-r--r-- | googletest/src/gtest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index c315d7a8..ece08817 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -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); } |