Fixed -Wsometimes-uninitialized warnings with zero initialization

This commit is contained in:
Sean McBride 2024-07-27 23:03:18 -04:00
parent 12d6dbed82
commit 7beb242316
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ static int timedping(const char* url, long timeout);
static char**
parseServers(const char* remotetestservers)
{
char* rts;
char* rts = NULL;
char** servers = NULL;
char** list = NULL;
char* p;

View File

@ -534,7 +534,7 @@ NC_copy_att(int ncid_in, int varid_in, const char *name,
{
/* Copy arbitrary attributes. */
int class;
size_t size;
size_t size = 0;
nc_type xtype_out = NC_NAT;
if(xtype <= NC_MAX_ATOMIC_TYPE) {