mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-23 16:59:54 +08:00
Fix library crash
This commit is contained in:
parent
2a0fdb34d7
commit
a58d243245
@ -1528,6 +1528,7 @@ define_vars(NC_FILE_INFO_T* file, NC_GRP_INFO_T* grp, NClist* varnames)
|
|||||||
/* Extract the NCZ_V2_ARRAY dict */
|
/* Extract the NCZ_V2_ARRAY dict */
|
||||||
if((stat = NCJdictget(jvar,NCZ_V2_ARRAY,&jncvar))) goto done;
|
if((stat = NCJdictget(jvar,NCZ_V2_ARRAY,&jncvar))) goto done;
|
||||||
}
|
}
|
||||||
|
if(jncvar == NULL) {stat = NC_ENCZARR; goto done;}
|
||||||
assert((NCJsort(jncvar) == NCJ_DICT));
|
assert((NCJsort(jncvar) == NCJ_DICT));
|
||||||
/* Extract storage flag */
|
/* Extract storage flag */
|
||||||
if((stat = NCJdictget(jncvar,"storage",&jvalue)))
|
if((stat = NCJdictget(jncvar,"storage",&jvalue)))
|
||||||
|
Loading…
Reference in New Issue
Block a user