< prev index next >

src/hotspot/share/utilities/ostream.cpp

Print this page
rev 58767 : 8242485: Null _file checking in fileStream::flush()

*** 563,573 **** --- 563,575 ---- _file = NULL; } } void fileStream::flush() { + if (_file != NULL) { fflush(_file); + } } void fdStream::write(const char* s, size_t len) { if (_fd != -1) { // Make an unused local variable to avoid warning from gcc compiler.
< prev index next >