summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2014-07-17 22:36:38 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2014-07-17 22:36:38 (GMT)
commit08590f3759614957a1fa48a25b01d165d26d2c63 (patch)
tree56d5fb6c1745aadcf4bfa73ed512a579a36c89a4 /hl
parent9158e8aa03227a294739aed5549ab14c1d04fb5c (diff)
downloadhdf5-08590f3759614957a1fa48a25b01d165d26d2c63.zip
hdf5-08590f3759614957a1fa48a25b01d165d26d2c63.tar.gz
hdf5-08590f3759614957a1fa48a25b01d165d26d2c63.tar.bz2
[svn-r25428] Description:
Initialize ID variables, so they aren't invalid when attempting to close them. Tested on: Mac OSX/64 10.9.3 (amazon) w/valgrind (h5committest not required on this branch)
Diffstat (limited to 'hl')
-rw-r--r--hl/src/H5LD.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hl/src/H5LD.c b/hl/src/H5LD.c
index 409ecd7..2d8cf01 100644
--- a/hl/src/H5LD.c
+++ b/hl/src/H5LD.c
@@ -405,9 +405,9 @@ static herr_t
H5LD_get_dset_elmts(hid_t did, const hsize_t *prev_dims, const hsize_t *cur_dims, const char *fields, void *buf)
{
int ndims; /* Number of dimensions for the dataset */
- hid_t dtid, tid; /* Dataset type id */
+ hid_t dtid = -1, tid = -1; /* Dataset type id */
size_t tot_tsize; /* Total data type size */
- hid_t sid, mid; /* Dataspace and memory space id */
+ hid_t sid = -1, mid = -1; /* Dataspace and memory space id */
hsize_t num_elmts; /* Number of dataset elements in the selection */
hsize_t start[H5S_MAX_RANK];/* Starting offset */
hsize_t count[H5S_MAX_RANK];/* ??offset */