Commit 228586f1 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

vlistCopyFlag: set varsAllocated to nvars2

parent 2538c705
......@@ -562,6 +562,7 @@ void vlistCopyFlag(int vlistID2, int vlistID1)
if ( vlistptr1->vars[varID].flag ) nvars2++;
vlistptr2->nvars = nvars2;
vlistptr2->varsAllocated = nvars2;
if ( nvars2 > 0 )
vlistptr2->vars = (var_t *) malloc(nvars2*sizeof(var_t));
else
......
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