Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8242485

Null _file checking in fileStream::flush()

XMLWordPrintable

    • b19

      In the current implementation of fileStream::flush()
      void fileStream::flush() {
        fflush(_file);
      }

      According to some related documents(http://www.cplusplus.com/reference/cstdio/fflush/) if _file is NULL,
      fflush() will flush all open output streams, and _file would be null in some cases.

            ddong Denghui Dong
            ddong Denghui Dong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: