summaryrefslogtreecommitdiffstats
path: root/HDF5Examples/C/H5D/16/h5ex_d_compact.c
diff options
context:
space:
mode:
Diffstat (limited to 'HDF5Examples/C/H5D/16/h5ex_d_compact.c')
-rw-r--r--HDF5Examples/C/H5D/16/h5ex_d_compact.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/HDF5Examples/C/H5D/16/h5ex_d_compact.c b/HDF5Examples/C/H5D/16/h5ex_d_compact.c
index 2d199ec..0c10a87 100644
--- a/HDF5Examples/C/H5D/16/h5ex_d_compact.c
+++ b/HDF5Examples/C/H5D/16/h5ex_d_compact.c
@@ -22,13 +22,16 @@
int
main(void)
{
- hid_t file, space, dset, dcpl; /* Handles */
+ hid_t file = H5I_INVALID_HID;
+ hid_t space = H5I_INVALID_HID;
+ hid_t dset = H5I_INVALID_HID;
+ hid_t dcpl = H5I_INVALID_HID;
herr_t status;
H5D_layout_t layout;
hsize_t dims[2] = {DIM0, DIM1};
- int wdata[DIM0][DIM1], /* Write buffer */
- rdata[DIM0][DIM1], /* Read buffer */
- i, j;
+ int wdata[DIM0][DIM1]; /* Write buffer */
+ int rdata[DIM0][DIM1]; /* Read buffer */
+ hsize_t i, j;
/*
* Initialize data.