mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
[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:
parent
375e1d4d77
commit
9413c52951
@ -1743,7 +1743,7 @@ done:
|
||||
if (H5Fclose(fid) < 0)
|
||||
d_status = 1;
|
||||
|
||||
if (rawdatastream != stdout)
|
||||
if (rawdatastream && rawdatastream != stdout)
|
||||
if (fclose(rawdatastream))
|
||||
perror("fclose");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user