From 587758e8c6272d7acde6bb765ac5003ddc754e4d Mon Sep 17 00:00:00 2001 From: David Young Date: Wed, 13 Nov 2019 11:23:12 -0600 Subject: Initialize a variable before its first use. --- hl/src/H5DS.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 *------------------------------------------------------------------------- -- cgit v0.12