Remove duplicate memcpy in chunk_file_cb (#1285)

This commit is contained in:
jhendersonHDF 2021-12-10 20:22:49 -06:00 committed by GitHub
parent b54c738822
commit c0a13fd9d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2259,7 +2259,6 @@ H5D__chunk_file_cb(void H5_ATTR_UNUSED *elem, const H5T_t H5_ATTR_UNUSED *type,
/* Set the chunk's scaled coordinates */
H5MM_memcpy(chunk_info->scaled, scaled, sizeof(hsize_t) * fm->f_ndims);
chunk_info->scaled[fm->f_ndims] = 0;
H5MM_memcpy(chunk_info->scaled, scaled, sizeof(hsize_t) * fm->f_ndims);
/* Insert the new chunk into the skip list */
if (H5SL_insert(fm->sel_chunks, chunk_info, &chunk_info->index) < 0) {