diff options
-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"); |