diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2009-06-26 19:41:32 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2009-06-26 19:41:32 (GMT) |
commit | d8c0ebd42824f24ab457c1b98c90d0531f899103 (patch) | |
tree | e11a6f171dc2f4a893c5067d093434ee46ef3aef /src/H5Apkg.h | |
parent | 084ab0cbde453e8f5847abbb06bc94cfe6f3e657 (diff) | |
download | hdf5-d8c0ebd42824f24ab457c1b98c90d0531f899103.zip hdf5-d8c0ebd42824f24ab457c1b98c90d0531f899103.tar.gz hdf5-d8c0ebd42824f24ab457c1b98c90d0531f899103.tar.bz2 |
[svn-r17119] Bug fix #1513. Reading an empty attribute caused seg fault. The flag "initialized" in
the attribute structure wan't set correctly. It caused some confusion in H5A_read. This
flag was actually redundant because the library can alwasy check if the data buffer is
present. To fix it, I removed the "initialized" flag in the attribute structure and let
H5A_read check the data buffer.
Tested on jam, smirom, and linex.
Diffstat (limited to 'src/H5Apkg.h')
-rw-r--r-- | src/H5Apkg.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/H5Apkg.h b/src/H5Apkg.h index 3c62635..4216fa3 100644 --- a/src/H5Apkg.h +++ b/src/H5Apkg.h @@ -75,7 +75,6 @@ /* Define the shared attribute structure */ typedef struct H5A_shared_t { unsigned version; /* Version to encode attribute with */ - hbool_t initialized;/* Indicate whether the attribute has been modified */ char *name; /* Attribute's name */ H5T_cset_t encoding; /* Character encoding of attribute name */ |