mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Corrected a handful of coverity issues.
This commit is contained in:
parent
3d7a2f8f52
commit
535b1e47aa
@ -347,7 +347,11 @@ ncuriparse(const char* uri0, NCURI** durip)
|
||||
fprintf(stderr,"\n");
|
||||
}
|
||||
#endif
|
||||
if(durip != NULL) *durip = duri;
|
||||
if(durip != NULL)
|
||||
*durip = duri;
|
||||
else
|
||||
ncurifree(duri);
|
||||
|
||||
return 1;
|
||||
|
||||
fail:
|
||||
|
@ -1003,6 +1003,7 @@ makeconstdata(nc_type nctype)
|
||||
consttype = nctype;
|
||||
con.nctype = nctype;
|
||||
con.lineno = lineno;
|
||||
con.filled = 0;
|
||||
switch (nctype) {
|
||||
case NC_CHAR: con.value.charv = char_val; break;
|
||||
case NC_BYTE: con.value.int8v = byte_val; break;
|
||||
|
@ -67,7 +67,7 @@ gen_load_c(
|
||||
double *doublevalp;
|
||||
char stmnt[C_MAX_STMNT];
|
||||
size_t stmnt_len;
|
||||
char s2[C_MAX_STMNT];
|
||||
char s2[C_MAX_STMNT] = {'\0'};
|
||||
|
||||
if (!vars[varnum].has_data)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user