summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_dset.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/h5diff_dset.c')
-rw-r--r--tools/lib/h5diff_dset.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/lib/h5diff_dset.c b/tools/lib/h5diff_dset.c
index a558987..1887df8 100644
--- a/tools/lib/h5diff_dset.c
+++ b/tools/lib/h5diff_dset.c
@@ -362,10 +362,12 @@ hsize_t diff_datasetid( hid_t dset1_id,
* array compare
*-------------------------------------------------------------------------
*/
- if (obj1_name)
+ if (obj1_name) {
name1=diff_basename(obj1_name);
- if (obj2_name)
+ }
+ if (obj2_name) {
name2=diff_basename(obj2_name);
+ }
nfound = diff_array(buf1,
buf2,
nelmts1,