summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-13 17:23:12 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:17:27 (GMT)
commit7b601c2611ce1c7819e06d06dae0adac2bd69f63 (patch)
treee016b13e34b8f239f14ba7f3bd50c7eb37cad481 /hl
parent2b863a81194d06a51a0c5f975e3f0746925d676a (diff)
downloadhdf5-7b601c2611ce1c7819e06d06dae0adac2bd69f63.zip
hdf5-7b601c2611ce1c7819e06d06dae0adac2bd69f63.tar.gz
hdf5-7b601c2611ce1c7819e06d06dae0adac2bd69f63.tar.bz2
Initialize a variable before its first use.
Diffstat (limited to 'hl')
-rw-r--r--hl/src/H5DS.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hl/src/H5DS.c b/hl/src/H5DS.c
index b24f887..44e0ecf9 100644
--- a/hl/src/H5DS.c
+++ b/hl/src/H5DS.c
@@ -1433,7 +1433,7 @@ herr_t H5DSset_label(hid_t did, unsigned int idx, const char *label)
union { /* union is needed to eliminate compiler warnings about */
char ** buf; /* discarding the 'const' qualifier in the free */
char const ** const_buf; /* buf calls */
- } u;
+ } u = {.buf = NULL, .const_buf = NULL};
/*-------------------------------------------------------------------------
* parameter checking
*-------------------------------------------------------------------------