summaryrefslogtreecommitdiffstats
path: root/tools/src/h5jam/h5jam.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-08-31 18:31:42 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-08-31 18:31:42 (GMT)
commitf5275af71acecacbe2f1f132416986fabe1169c5 (patch)
treefaf7f3ac42a3f86b3a3fc4ba43a434a0db4f86e6 /tools/src/h5jam/h5jam.c
parent289007567e6ab5e0893af787b1870f27f10644c7 (diff)
parent61bdee1ff77a5db47ce8a88ce7e3c83e58123236 (diff)
downloadhdf5-f5275af71acecacbe2f1f132416986fabe1169c5.zip
hdf5-f5275af71acecacbe2f1f132416986fabe1169c5.tar.gz
hdf5-f5275af71acecacbe2f1f132416986fabe1169c5.tar.bz2
Merge pull request #644 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit '61bdee1ff77a5db47ce8a88ce7e3c83e58123236': HDFFV-10282 refactor out assert calls in tools
Diffstat (limited to 'tools/src/h5jam/h5jam.c')
-rw-r--r--tools/src/h5jam/h5jam.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/tools/src/h5jam/h5jam.c b/tools/src/h5jam/h5jam.c
index a403cf1..8c15686 100644
--- a/tools/src/h5jam/h5jam.c
+++ b/tools/src/h5jam/h5jam.c
@@ -73,13 +73,13 @@ usage (const char *prog)
HDfprintf (stdout,
"Adds user block to front of an HDF5 file and creates a new concatenated file.\n");
HDfprintf (stdout, "\n");
- HDfprintf (stdout,
+ HDfprintf (stdout,
"OPTIONS\n");
- HDfprintf (stdout,
+ HDfprintf (stdout,
" -i in_file.h5 Specifies the input HDF5 file.\n");
- HDfprintf (stdout,
+ HDfprintf (stdout,
" -u in_user_file Specifies the file to be inserted into the user block.\n");
- HDfprintf (stdout,
+ HDfprintf (stdout,
" Can be any file format except an HDF5 format.\n");
HDfprintf (stdout,
" -o out_file.h5 Specifies the output HDF5 file.\n");
@@ -392,7 +392,7 @@ main (int argc, const char *argv[])
HDfree (input_file);
if(output_file)
HDfree (output_file);
-
+
if(ufid >= 0)
HDclose (ufid);
if(h5fid >= 0)
@@ -548,7 +548,8 @@ write_pad(int ofile, hsize_t old_where, hsize_t *new_where)
char buf[1];
hsize_t psize;
- HDassert(new_where);
+ if(new_where == NULL)
+ return FAIL;
buf[0] = '\0';