Commit 8e6eaec9 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

vlistCopyFlag: copy ensdata (bug fix)

parent 58a9e951
...@@ -510,8 +510,8 @@ void vlistCopyFlag(int vlistID2, int vlistID1) ...@@ -510,8 +510,8 @@ void vlistCopyFlag(int vlistID2, int vlistID1)
if ( vlistptr1->vars[varID].ensdata ) if ( vlistptr1->vars[varID].ensdata )
{ {
vlistptr2->vars[varID].ensdata = (ensinfo_t *) malloc(sizeof(ensinfo_t)); vlistptr2->vars[varID2].ensdata = (ensinfo_t *) malloc(sizeof(ensinfo_t));
memcpy(vlistptr2->vars[varID].ensdata, memcpy(vlistptr2->vars[varID2].ensdata,
vlistptr1->vars[varID].ensdata, sizeof(ensinfo_t)); vlistptr1->vars[varID].ensdata, sizeof(ensinfo_t));
} }
......
Supports Markdown
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