mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
Fixes -Wnull-dereference warning in hl/src/H5DS.c
This commit is contained in:
parent
e327843f7a
commit
b1c78579da
@ -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
|
||||
*-------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user