Skip to content

Commit

Permalink
Fix a few illegal pointer usages (#5279)
Browse files Browse the repository at this point in the history
  • Loading branch information
TedLyngmo authored Jan 26, 2025
1 parent 99aac48 commit 985df02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/H5Shyper.c
Original file line number Diff line number Diff line change
Expand Up @@ -12334,7 +12334,7 @@ H5S_hyper_get_first_inc_block(const H5S_t *space, hsize_t clip_size, bool *parti
if (diminfo->start >= clip_size) {
ret_value = 0;
if (partial)
partial = false;
*partial = false;
} /* end if */
else {
/* Calculate index of first incomplete block */
Expand Down
8 changes: 4 additions & 4 deletions test/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -13800,12 +13800,12 @@ check_check_evictions_enabled_err(unsigned paged)

(cache_ptr->resize_ctl).incr_mode = H5C_incr__threshold;

result = H5C_get_evictions_enabled(cache_ptr, false);
result = H5C_set_evictions_enabled(cache_ptr, false);

if (result == SUCCEED) {

pass = false;
failure_mssg = "H5C_get_evictions_enabled succeeded() 1.\n";
failure_mssg = "H5C_set_evictions_enabled succeeded() 1.\n";
}
else if (cache_ptr->evictions_enabled == true) {
}
Expand All @@ -13817,12 +13817,12 @@ check_check_evictions_enabled_err(unsigned paged)

(cache_ptr->resize_ctl).decr_mode = H5C_decr__threshold;

result = H5C_get_evictions_enabled(cache_ptr, false);
result = H5C_set_evictions_enabled(cache_ptr, false);

if (result == SUCCEED) {

pass = false;
failure_mssg = "H5C_get_evictions_enabled succeeded() 2.\n";
failure_mssg = "H5C_set_evictions_enabled succeeded() 2.\n";
}

(cache_ptr->resize_ctl).decr_mode = H5C_decr__off;
Expand Down

0 comments on commit 985df02

Please sign in to comment.