mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Corrected a potential garbage value return as reported by static analysis.
This commit is contained in:
parent
6555488dfc
commit
e23f0429ce
@ -286,7 +286,7 @@ static int
|
||||
genbin_deftype(Symbol* tsym)
|
||||
{
|
||||
unsigned long i;
|
||||
int stat;
|
||||
int stat = 0;
|
||||
|
||||
ASSERT(tsym->objectclass == NC_TYPE);
|
||||
switch (tsym->subclass) {
|
||||
@ -424,7 +424,7 @@ genbin_writevar(Generator* generator, Symbol* vsym, Bytebuffer* memory,
|
||||
char* data = bbContents(memory);
|
||||
size_t nelems;
|
||||
|
||||
/* Compute total number of elements */
|
||||
/* Compute total number of elements */
|
||||
for(nelems=1,i=0;i<rank;i++) nelems *= count[i];
|
||||
|
||||
#ifdef GENDEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user