Commit 025a6df1 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Set elements directly instead of using accessors.

* This circumvents problems in case not-yet created resources are
  referenced.
parent bc0b2661
......@@ -1748,10 +1748,11 @@ void vlistUnpack(char * buf, int size, int *position, int nspTarget, void *conte
serializeUnpack(buf, size, position, tempbuf, vlist_nints, DATATYPE_INT, context);
newvlist = vlistCreate();
/* xassert(newvlist == tempbuf[0]); */
vlistDefTaxis ( newvlist, namespaceAdaptKey ( tempbuf[3], nspTarget ));
vlistDefTable(newvlist, tempbuf[4]);
vlistDefInstitut ( newvlist, namespaceAdaptKey ( tempbuf[5], nspTarget ));
vlistDefModel ( newvlist, namespaceAdaptKey ( tempbuf[6], nspTarget ));
vlist_t *p = vlist_to_pointer(newvlist);
p->taxisID = namespaceAdaptKey(tempbuf[3], nspTarget);
p->tableID = tempbuf[4];
p->instID = namespaceAdaptKey(tempbuf[5], nspTarget);
p->modelID = namespaceAdaptKey(tempbuf[6], nspTarget);
vlistAttsUnpack(newvlist, CDI_GLOBAL, buf, size, position, context);
for ( varID = 0; varID < tempbuf[1]; varID++ )
vlistVarUnpack(newvlist, buf, size, position, nspTarget, context);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment