summaryrefslogtreecommitdiffstats
path: root/src/H5Odtype.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Odtype.c')
-rw-r--r--src/H5Odtype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index 5acec69..b18c138 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -201,10 +201,10 @@ H5O_dtype_decode_helper(H5F_t *f, const uint8_t **pp, H5T_t *dt)
"memory allocation failed");
}
for (i = 0; i < dt->u.compnd.nmembs; i++) {
- intn ndims; /* Number of dimensions of the array field */
+ intn ndims=0; /* Number of dimensions of the array field */
hsize_t dim[H5O_LAYOUT_NDIMS]; /* Dimensions of the array */
int perm[H5O_LAYOUT_NDIMS]; /* Dimension permutations */
- uintn perm_word; /* Dimension permutation information */
+ uintn perm_word=0; /* Dimension permutation information */
H5T_t *array_dt; /* Temporary pointer to the array datatype */
H5T_t *temp_type; /* Temporary pointer to the field's datatype */