diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-08-06 05:56:15 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-08-06 05:56:15 (GMT) |
commit | b1c78579da25704d2c688a6047f58ebaf62cae82 (patch) | |
tree | ca5184572e9f183fa42de653a40e9795795bbda3 /hl | |
parent | e327843f7af9857bdd4b560cd47ca3afe52bb74c (diff) | |
download | hdf5-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.c | 7 |
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 *------------------------------------------------------------------------- |