diff options
author | Quincey Koziol <koziol@lbl.gov> | 2016-09-29 18:01:23 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@lbl.gov> | 2016-09-29 18:01:23 (GMT) |
commit | 1853868fdc9433f29adae5418d1fd0d65a45fabe (patch) | |
tree | 4693a2bbd0c638a1dd3db0ae171380ce49903bfb /hl/tools/gif2h5/h52gifgentst.c | |
parent | fa66428a6dd3e9250497618afa6402008c7ed409 (diff) | |
download | hdf5-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/tools/gif2h5/h52gifgentst.c')
-rw-r--r-- | hl/tools/gif2h5/h52gifgentst.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hl/tools/gif2h5/h52gifgentst.c b/hl/tools/gif2h5/h52gifgentst.c index 6a41028..39e950b 100644 --- a/hl/tools/gif2h5/h52gifgentst.c +++ b/hl/tools/gif2h5/h52gifgentst.c @@ -57,8 +57,8 @@ int main(void) hsize_t height = HEIGHT; /* Allocate buffer */ - buf = (unsigned char *)malloc(WIDTH * HEIGHT); - assert(buf); + if(NULL == (buf = (unsigned char *)malloc(WIDTH * HEIGHT))) + return EXIT_FAILURE; /* create a file */ if ((fid = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT))<0) |