From 050ee85cfa942f4780fe016a087153e7352497f0 Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Wed, 3 Apr 2013 22:42:29 +0000 Subject: [PATCH] --- libsrc4/nc4file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc4/nc4file.c b/libsrc4/nc4file.c index 6c470023e..9c184edd9 100644 --- a/libsrc4/nc4file.c +++ b/libsrc4/nc4file.c @@ -850,7 +850,7 @@ static int read_hdf5_att(NC_GRP_INFO_T *grp, hid_t attid, NC_ATT_INFO_T *att) { hid_t spaceid = 0, file_typeid = 0; - hsize_t dims[1]; /* netcdf attributes always 1-D. */ + hsize_t dims[1] = {0}; /* netcdf attributes always 1-D. */ int retval = NC_NOERR; size_t type_size; int att_ndims;