Skip to content

Commit 985df02

Browse files
authored
Fix a few illegal pointer usages (HDFGroup#5279)
1 parent 99aac48 commit 985df02

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/H5Shyper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12334,7 +12334,7 @@ H5S_hyper_get_first_inc_block(const H5S_t *space, hsize_t clip_size, bool *parti
1233412334
if (diminfo->start >= clip_size) {
1233512335
ret_value = 0;
1233612336
if (partial)
12337-
partial = false;
12337+
*partial = false;
1233812338
} /* end if */
1233912339
else {
1234012340
/* Calculate index of first incomplete block */

test/cache.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13800,12 +13800,12 @@ check_check_evictions_enabled_err(unsigned paged)
1380013800

1380113801
(cache_ptr->resize_ctl).incr_mode = H5C_incr__threshold;
1380213802

13803-
result = H5C_get_evictions_enabled(cache_ptr, false);
13803+
result = H5C_set_evictions_enabled(cache_ptr, false);
1380413804

1380513805
if (result == SUCCEED) {
1380613806

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

1381813818
(cache_ptr->resize_ctl).decr_mode = H5C_decr__threshold;
1381913819

13820-
result = H5C_get_evictions_enabled(cache_ptr, false);
13820+
result = H5C_set_evictions_enabled(cache_ptr, false);
1382113821

1382213822
if (result == SUCCEED) {
1382313823

1382413824
pass = false;
13825-
failure_mssg = "H5C_get_evictions_enabled succeeded() 2.\n";
13825+
failure_mssg = "H5C_set_evictions_enabled succeeded() 2.\n";
1382613826
}
1382713827

1382813828
(cache_ptr->resize_ctl).decr_mode = H5C_decr__off;

0 commit comments

Comments
 (0)