summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-08-06 05:56:15 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-08-06 05:56:15 (GMT)
commitb1c78579da25704d2c688a6047f58ebaf62cae82 (patch)
treeca5184572e9f183fa42de653a40e9795795bbda3 /hl
parente327843f7af9857bdd4b560cd47ca3afe52bb74c (diff)
downloadhdf5-b1c78579da25704d2c688a6047f58ebaf62cae82.zip
hdf5-b1c78579da25704d2c688a6047f58ebaf62cae82.tar.gz
hdf5-b1c78579da25704d2c688a6047f58ebaf62cae82.tar.bz2
Fixes -Wnull-dereference warning in hl/src/H5DS.c
Diffstat (limited to 'hl')
-rw-r--r--hl/src/H5DS.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/hl/src/H5DS.c b/hl/src/H5DS.c
index 63fb461..82dc129 100644
--- a/hl/src/H5DS.c
+++ b/hl/src/H5DS.c
@@ -1460,10 +1460,6 @@ out:
*
* Date: January 11, 2005
*
-* Comments:
-*
-* Modifications:
-*
*-------------------------------------------------------------------------
*/
@@ -1481,6 +1477,9 @@ herr_t H5DSset_label(hid_t did, unsigned int idx, const char *label)
char ** buf; /* discarding the 'const' qualifier in the free */
char const ** const_buf; /* buf calls */
} u;
+
+ HDmemset(&u, 0, sizeof(u));
+
/*-------------------------------------------------------------------------
* parameter checking
*-------------------------------------------------------------------------