Fix library crash

This commit is contained in:
Dennis Heimbigner 2021-08-11 12:28:06 -06:00
parent 2a0fdb34d7
commit a58d243245

View File

@ -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)))