diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-01-18 16:40:44 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-01-18 16:40:44 (GMT) |
commit | f81103e89eb2fc2374056831c38dafac26a7150d (patch) | |
tree | 2568a235fa265cfa00a97ec17ecb042c7d0f6fa3 | |
parent | ab0fa809948191a0f9156fb9cfeed9a969b77e48 (diff) | |
parent | a4e63bb98072868a145c45e8247280ebc86c3a6d (diff) | |
download | hdf5-f81103e89eb2fc2374056831c38dafac26a7150d.zip hdf5-f81103e89eb2fc2374056831c38dafac26a7150d.tar.gz hdf5-f81103e89eb2fc2374056831c38dafac26a7150d.tar.bz2 |
Merge pull request #1482 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:valgrind_fixes to develop
* commit 'a4e63bb98072868a145c45e8247280ebc86c3a6d':
Fixed a memory issue flagged by valgrind in the direct_chunk test.
-rw-r--r-- | test/direct_chunk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/direct_chunk.c b/test/direct_chunk.c index 2ef38ea..2edfe64 100644 --- a/test/direct_chunk.c +++ b/test/direct_chunk.c @@ -1910,10 +1910,10 @@ test_read_unallocated_chunk (hid_t file) goto error; /* Write a single chunk to intialize the chunk storage */ - HDmemset(&chunk_dims, 0, sizeof(chunk_dims)); + HDmemset(direct_buf, 0, CHUNK_NX * CHUNK_NY * sizeof(int)); offset[0] = 0; offset[1] = 0; - if(H5Dwrite_chunk(dataset, dxpl, filter_mask, offset, chunk_nbytes, &chunk_dims) < 0) + if(H5Dwrite_chunk(dataset, dxpl, filter_mask, offset, chunk_nbytes, direct_buf) < 0) goto error; /* Attempt to read each chunk in the dataset. Chunks are not allocated, |