[svn-r2627] Purpose:

Bug fix
Description:
    Attempted to close rawdatastream even if it has not been
    used to open a new file.  Many systems tolerated the NULL
    value but not FreeBSD.
Solution:
    Check for the NULL value too.
Platforms tested:
    hawkwind (freeBSD) and modi4 parallel.
This commit is contained in:
Albert Cheng 2000-10-02 13:06:20 -05:00
parent 375e1d4d77
commit 9413c52951

View File

@ -1743,7 +1743,7 @@ done:
if (H5Fclose(fid) < 0)
d_status = 1;
if (rawdatastream != stdout)
if (rawdatastream && rawdatastream != stdout)
if (fclose(rawdatastream))
perror("fclose");