diff options
author | David Young <dyoung@hdfgroup.org> | 2019-11-13 17:23:12 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2019-11-13 17:23:12 (GMT) |
commit | 587758e8c6272d7acde6bb765ac5003ddc754e4d (patch) | |
tree | acd6920f510b15004d65d45028f3f9b8c1fb93fd /hl | |
parent | c538919509780b7729354124eeb21ceaa321dbda (diff) | |
download | hdf5-587758e8c6272d7acde6bb765ac5003ddc754e4d.zip hdf5-587758e8c6272d7acde6bb765ac5003ddc754e4d.tar.gz hdf5-587758e8c6272d7acde6bb765ac5003ddc754e4d.tar.bz2 |
Initialize a variable before its first use.
Diffstat (limited to 'hl')
-rw-r--r-- | hl/src/H5DS.c | 2 |
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 *------------------------------------------------------------------------- |