Skip to content
Snippets Groups Projects
Commit 4b2522fb authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Replace checked malloc call with call to non-fail wrapper.

parent f3929959
No related branches found
No related tags found
No related merge requests found
......@@ -72,9 +72,7 @@ void cdiCreateTimesteps(stream_t *streamptr)
if ( streamptr->ntsteps == 0 ) ntsteps = 1; /* <<<<<-------- */
else ntsteps = streamptr->ntsteps;
streamptr->tsteps = (tsteps_t *) malloc((size_t)ntsteps*sizeof(tsteps_t));
if ( streamptr->tsteps == NULL )
SysError("Allocation of tsteps_t failed");
streamptr->tsteps = (tsteps_t *)xmalloc((size_t)ntsteps*sizeof(tsteps_t));
streamptr->tstepsTableSize = (int)ntsteps;
streamptr->tstepsNextID = (int)ntsteps;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment