mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Corrected a null dereference error.
This commit is contained in:
parent
b34956e06e
commit
a8aac6f568
@ -150,7 +150,7 @@ occompile1(OCstate* state, OCnode* xnode, XXDR* xxdrs, OCdata** datap)
|
|||||||
/* Allocate a record instance */
|
/* Allocate a record instance */
|
||||||
OCdata* record = NULL;
|
OCdata* record = NULL;
|
||||||
ocstat = occompilerecord(state,xnode,xxdrs,&record);
|
ocstat = occompilerecord(state,xnode,xxdrs,&record);
|
||||||
if(ocstat != OC_NOERR) goto fail;
|
if(ocstat != OC_NOERR || !record) goto fail;
|
||||||
/* Capture the back link */
|
/* Capture the back link */
|
||||||
record->container = data;
|
record->container = data;
|
||||||
record->index = nelements;
|
record->index = nelements;
|
||||||
|
Loading…
Reference in New Issue
Block a user