summaryrefslogtreecommitdiffstats
path: root/hl/test/test_ds.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2016-09-29 18:01:23 (GMT)
committerQuincey Koziol <koziol@lbl.gov>2016-09-29 18:01:23 (GMT)
commit1853868fdc9433f29adae5418d1fd0d65a45fabe (patch)
tree4693a2bbd0c638a1dd3db0ae171380ce49903bfb /hl/test/test_ds.c
parentfa66428a6dd3e9250497618afa6402008c7ed409 (diff)
downloadhdf5-1853868fdc9433f29adae5418d1fd0d65a45fabe.zip
hdf5-1853868fdc9433f29adae5418d1fd0d65a45fabe.tar.gz
hdf5-1853868fdc9433f29adae5418d1fd0d65a45fabe.tar.bz2
Description:
Cleanups from Dana's review. Tested on: MacOSX/64 10.11.5 (amazon) w/C++ & FORTRAN (h5committest forthcoming)
Diffstat (limited to 'hl/test/test_ds.c')
-rw-r--r--hl/test/test_ds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hl/test/test_ds.c b/hl/test/test_ds.c
index 3ca1e4d..091a98b 100644
--- a/hl/test/test_ds.c
+++ b/hl/test/test_ds.c
@@ -410,8 +410,8 @@ herr_t create_long_dataset(hid_t fid, const char *dsname, const char *dsidx, int
long s44_wbuf[DIM4_SIZE] = {280,280};
/* Allocate buffer */
- buf = (long *)HDmalloc(sizeof(long) * DIM1_SIZE * DIM2_SIZE * DIM3_SIZE * DIM4_SIZE);
- HDassert(buf);
+ if(NULL == (buf = (long *)HDmalloc(sizeof(long) * DIM1_SIZE * DIM2_SIZE * DIM3_SIZE * DIM4_SIZE)))
+ return FAIL;
/* make a dataset */
if(H5LTmake_dataset_long(fid, dsname, rank, dims, buf) >= 0) {