summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dump.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-07-06 20:07:03 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-07-06 20:07:03 (GMT)
commit4535e598f709e4d9bed0f5de1076d5e77b7441ab (patch)
tree31f79fe87fbda10d9af69d2a04eb9b7619021a44 /tools/h5dump/h5dump.c
parente8337826c8f2a9baea10234370cbe7955edb6d0a (diff)
downloadhdf5-4535e598f709e4d9bed0f5de1076d5e77b7441ab.zip
hdf5-4535e598f709e4d9bed0f5de1076d5e77b7441ab.tar.gz
hdf5-4535e598f709e4d9bed0f5de1076d5e77b7441ab.tar.bz2
[svn-r8812] Purpose:
h5dump new tests Description: added new tests for the -p option, superblock, file contents, fill values, array indices. Solution: Platforms tested: linux AIX solaris Misc. update:
Diffstat (limited to 'tools/h5dump/h5dump.c')
-rw-r--r--tools/h5dump/h5dump.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index ef5e94c..d294942 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -2068,10 +2068,9 @@ static void dump_fill_value(hid_t dcpl,hid_t type_id, hid_t obj_id)
memset(&ctx, 0, sizeof(ctx));
ctx.indent_level=2;
- size = H5Tget_size(type_id);
- buf = malloc(size);
-
n_type = H5Tget_native_type(type_id,H5T_DIR_DEFAULT);
+ size = H5Tget_size(n_type);
+ buf = malloc(size);
H5Pget_fill_value(dcpl, n_type, buf);