mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-17 16:50:18 +08:00
Corrected an issue reported by clang related to dereferencing a NULL value.
This commit is contained in:
parent
1d007eb101
commit
74fce49fe1
@ -524,7 +524,8 @@ computeseqcountconstraints3r(NCDAPCOMMON* dapcomm, CDFnode* node, CDFnode** cand
|
||||
|
||||
candidate = NULL;
|
||||
compound = NULL;
|
||||
|
||||
if(node == NULL)
|
||||
return;
|
||||
for(i=0;i<nclistlength(node->subnodes);i++) {
|
||||
CDFnode* subnode = (CDFnode*)nclistget(node->subnodes,i);
|
||||
if(subnode->nctype == NC_Structure || subnode->nctype == NC_Grid)
|
||||
|
Loading…
Reference in New Issue
Block a user