Corrected a null dereference error.

This commit is contained in:
Ward Fisher 2014-04-18 19:13:34 -06:00
parent b34956e06e
commit a8aac6f568

View File

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