mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-31 17:10:47 +08:00
Initialize a variable before its first use.
This commit is contained in:
parent
c538919509
commit
587758e8c6
@ -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
|
||||
*-------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user