summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-04-02 13:59:10 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-04-02 13:59:10 (GMT)
commit5e319027652b1187c509953f0f9bb80269244c51 (patch)
treee3d34f6995907a603a9b99363b1b26b73af8cf03 /src/H5D.c
parentddb367a33552e0d5ace738330322cae567b26783 (diff)
downloadhdf5-5e319027652b1187c509953f0f9bb80269244c51.zip
hdf5-5e319027652b1187c509953f0f9bb80269244c51.tar.gz
hdf5-5e319027652b1187c509953f0f9bb80269244c51.tar.bz2
[svn-r1171] Changes since 19990330
---------------------- ./src/H5A.c ./src/H5D.c The `bkg' buffers are zeroed before calling the type conversion function. This fixes a problem where reading a file compound data structure into memory results in garbage between the members. ./src/H5I.c Fixed H5I_clear_group() so it removes entries even when a free callback is not registered. This fixes fixes an `infinite loop closing library' warning message. ./src/H5.c Added ellipses to the end of the infinite loop message.
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 623d57a..656b7a5 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -1720,7 +1720,9 @@ H5D_read(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space,
if (n!=smine_nelmts) {
HGOTO_ERROR (H5E_IO, H5E_READERROR, FAIL, "mem gather failed");
}
- }
+ } else if (need_bkg) {
+ HDmemset(bkg_buf, 0, request_nelmts*dst_type_size);
+ }
#ifdef QAK
printf("%s: check 7.0\n",FUNC);
@@ -2084,8 +2086,10 @@ H5D_write(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space,
HGOTO_ERROR (H5E_IO, H5E_WRITEERROR, FAIL,
"file gather failed");
}
- }
-
+ } else if (need_bkg) {
+ HDmemset(bkg_buf, 0, request_nelmts*dst_type_size);
+ }
+
/*
* Perform data type conversion.
*/