summaryrefslogtreecommitdiffstats
path: root/tools/h5dump
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-02-07 18:03:41 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-02-07 18:03:41 (GMT)
commit74bfe972b557c028eb867b075bea39975b5081e9 (patch)
treebaa8177d82a2433b92e3b2614af1ad55d89b2dae /tools/h5dump
parent9622809059390edb3184bf39b92010ce76333c7d (diff)
downloadhdf5-74bfe972b557c028eb867b075bea39975b5081e9.zip
hdf5-74bfe972b557c028eb867b075bea39975b5081e9.tar.gz
hdf5-74bfe972b557c028eb867b075bea39975b5081e9.tar.bz2
[svn-r9953] Purpose: Minor changes.
Description: A little refactoring in tools/h5dump/h5dump.c for the bug fix of wrong byte order of 1-byte integer types. Platforms tested: No test needed, too simple. Misc. update: Added information about the bug fix of wrong byte order of 1-byte integer in RELEASE.txt
Diffstat (limited to 'tools/h5dump')
-rw-r--r--tools/h5dump/h5dump.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index 242ab67..7c7383c 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -813,7 +813,6 @@ print_datatype(hid_t type,unsigned in_group)
/* Check C variable-length string first. Are the two types equal? */
if (H5Tequal(tmp_type, str_type)) {
printf("H5T_C_S1;\n");
- H5Tclose(str_type);
goto done;
}
@@ -826,7 +825,6 @@ print_datatype(hid_t type,unsigned in_group)
if (H5Tequal(tmp_type, str_type)) {
printf("H5T_C_S1;\n");
- H5Tclose(str_type);
goto done;
}
@@ -840,7 +838,6 @@ print_datatype(hid_t type,unsigned in_group)
/* Are the two types equal? */
if (H5Tequal(tmp_type, str_type)) {
printf("H5T_FORTRAN_S1;\n");
- H5Tclose(str_type);
goto done;
}
@@ -853,15 +850,14 @@ print_datatype(hid_t type,unsigned in_group)
if (H5Tequal(tmp_type, str_type)) {
printf("H5T_FORTRAN_S1;\n");
- H5Tclose(str_type);
goto done;
}
printf("unknown_one_character_type;\n ");
d_status = EXIT_FAILURE;
- H5Tclose(str_type);
done:
+ H5Tclose(str_type);
H5Tclose(tmp_type);
indent -= COL;