summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_dset.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-01-17 15:55:15 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-01-17 15:55:15 (GMT)
commitbe260bbf75e965e80808adf8c8d2b35dd7f9470b (patch)
treeb87b2619d4718a76b3594b0210bb324cb68bb205 /tools/lib/h5diff_dset.c
parent509b6c24a7793b8fddd15a6abb6f9573f7adae3e (diff)
downloadhdf5-be260bbf75e965e80808adf8c8d2b35dd7f9470b.zip
hdf5-be260bbf75e965e80808adf8c8d2b35dd7f9470b.tar.gz
hdf5-be260bbf75e965e80808adf8c8d2b35dd7f9470b.tar.bz2
Add goto error for dataset read failure. Fixed comments
Diffstat (limited to 'tools/lib/h5diff_dset.c')
-rw-r--r--tools/lib/h5diff_dset.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lib/h5diff_dset.c b/tools/lib/h5diff_dset.c
index 63f1483..aca8d02 100644
--- a/tools/lib/h5diff_dset.c
+++ b/tools/lib/h5diff_dset.c
@@ -89,6 +89,9 @@ hsize_t diff_dataset( hid_t file1_id,
obj2_name,
options);
}
+ else
+ goto error;
+
/*-------------------------------------------------------------------------
* close
*-------------------------------------------------------------------------