summaryrefslogtreecommitdiffstats
path: root/src/H5Fint.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-01-09 14:51:34 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-01-09 14:51:34 (GMT)
commitacabad61facccea62d5d12c76ccb09d107e9062c (patch)
treea45b4d2c914786e341c403bd506890cde8e15861 /src/H5Fint.c
parent992e79b58cf83a75f7567d73d7e7d534750c3d68 (diff)
parent50c5f1ab2c706e00ec546c4f5a415b4203a5db7e (diff)
downloadhdf5-acabad61facccea62d5d12c76ccb09d107e9062c.zip
hdf5-acabad61facccea62d5d12c76ccb09d107e9062c.tar.gz
hdf5-acabad61facccea62d5d12c76ccb09d107e9062c.tar.bz2
[svn-r25968] merge from trunk.
Diffstat (limited to 'src/H5Fint.c')
-rw-r--r--src/H5Fint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Fint.c b/src/H5Fint.c
index 48c0cc6..c25668d 100644
--- a/src/H5Fint.c
+++ b/src/H5Fint.c
@@ -1090,7 +1090,7 @@ H5F_open(const char *name, unsigned flags, hid_t fcpl_id, hid_t fapl_id,
* Read or write the file superblock, depending on whether the file is
* empty or not.
*/
- if(0 == H5FD_get_eof(lf) && (flags & H5F_ACC_RDWR)) {
+ if(0 == (MAX(H5FD_get_eof(lf, H5FD_MEM_SUPER), H5FD_get_eoa(lf, H5FD_MEM_SUPER))) && (flags & H5F_ACC_RDWR)) {
/*
* We've just opened a fresh new file (or truncated one). We need
* to create & write the superblock.