diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-01-17 05:37:07 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-01-17 05:37:07 (GMT) |
commit | a4e63bb98072868a145c45e8247280ebc86c3a6d (patch) | |
tree | 2568a235fa265cfa00a97ec17ecb042c7d0f6fa3 /test/direct_chunk.c | |
parent | ab0fa809948191a0f9156fb9cfeed9a969b77e48 (diff) | |
download | hdf5-a4e63bb98072868a145c45e8247280ebc86c3a6d.zip hdf5-a4e63bb98072868a145c45e8247280ebc86c3a6d.tar.gz hdf5-a4e63bb98072868a145c45e8247280ebc86c3a6d.tar.bz2 |
Fixed a memory issue flagged by valgrind in the direct_chunk test.
Diffstat (limited to 'test/direct_chunk.c')
-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, |