Commit 78a3f4bf authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Use xmalloc where appropriate.

parent b129b14f
......@@ -1028,7 +1028,7 @@ void varDefTable(int varID, int tableID)
void varDefEnsembleInfo(int varID, int ens_idx, int ens_count, int forecast_type)
{
if ( vartable[varID].ensdata == NULL )
vartable[varID].ensdata = (ensinfo_t *) malloc( sizeof( ensinfo_t ) );
vartable[varID].ensdata = (ensinfo_t *)xmalloc( sizeof( ensinfo_t ) );
vartable[varID].ensdata->ens_index = ens_idx;
vartable[varID].ensdata->ens_count = ens_count;
......
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