diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2000-10-02 18:06:20 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2000-10-02 18:06:20 (GMT) |
commit | 9413c52951387d357e5b81766d67a92035b517fe (patch) | |
tree | d65b3c092b5c00317b667ce872ac4363a9cbc10f /tools | |
parent | 375e1d4d7745f7115631901e5a34fdf6755c3658 (diff) | |
download | hdf5-9413c52951387d357e5b81766d67a92035b517fe.zip hdf5-9413c52951387d357e5b81766d67a92035b517fe.tar.gz hdf5-9413c52951387d357e5b81766d67a92035b517fe.tar.bz2 |
[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.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5dump.c b/tools/h5dump.c index 886737b..6b21244 100644 --- a/tools/h5dump.c +++ b/tools/h5dump.c @@ -1743,7 +1743,7 @@ done: if (H5Fclose(fid) < 0) d_status = 1; - if (rawdatastream != stdout) + if (rawdatastream && rawdatastream != stdout) if (fclose(rawdatastream)) perror("fclose"); |