diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2013-09-13 22:03:22 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2013-09-13 22:03:22 (GMT) |
commit | a80cf34324810aa52c97586950606bbfc64b0e37 (patch) | |
tree | 18c48cc4e3226fd1c286f90ff72c3a0fc42022dd /src/H5Fpkg.h | |
parent | 309f3e7a23805c7be1fb65e00338fea831f977e7 (diff) | |
download | hdf5-a80cf34324810aa52c97586950606bbfc64b0e37.zip hdf5-a80cf34324810aa52c97586950606bbfc64b0e37.tar.gz hdf5-a80cf34324810aa52c97586950606bbfc64b0e37.tar.bz2 |
[svn-r24140] Purpose: Remove problematic abandonment of error stack
Description:
H5Fis_hdf5 uses H5F_locate_signature to check if the file is hdf5. If it does
not locate the signature, H5F_locate_signature would issue an error and return
HADDR_UNDEF. H5Fis_hdf5 does not consider it an error if the signature is not
found, so it does not issue an error or clear the stack. The filled stack could
then cause issues later on.
Changed H5F_locate_signature to return herr_t, not issue an error if the
signature is not found, and added a parameter for a pointer to the signature
address that the function fills in.
Tested: jam, koala, ostrich (h5committest)
Diffstat (limited to 'src/H5Fpkg.h')
-rw-r--r-- | src/H5Fpkg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Fpkg.h b/src/H5Fpkg.h index 2465222..5d4ca2f 100644 --- a/src/H5Fpkg.h +++ b/src/H5Fpkg.h @@ -296,7 +296,7 @@ H5_DLLVAR const H5AC_class_t H5AC_SUPERBLOCK[1]; /* General routines */ H5_DLL herr_t H5F_init(void); -H5_DLL haddr_t H5F_locate_signature(H5FD_t *file, hid_t dxpl_id); +H5_DLL herr_t H5F_locate_signature(H5FD_t *file, hid_t dxpl_id, haddr_t *sig_addr); H5_DLL herr_t H5F_flush(H5F_t *f, hid_t dxpl_id, hbool_t closing); /* File mount related routines */ |