Commit 83af3d5e authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

replace xmalloc() by Malloc()

parent e48e6e80
......@@ -307,7 +307,7 @@ bfile_t *file_new_entry(void)
{
bfile_t *fileptr;
fileptr = (bfile_t *)xmalloc(sizeof(bfile_t));
fileptr = (bfile_t *) Malloc(sizeof(bfile_t));
if ( fileptr ) file_init_entry(fileptr);
......
......@@ -5194,7 +5194,7 @@ int isHybridSigmaPressureCoordinate(int ncid, int ncvarid, ncvar_t *ncvars, cons
printf("%d %g %g %g %g\n", i, abuf[i*2], abuf[i*2+1], bbuf[i*2], bbuf[i*2+1]);
*/
size_t vctsize = (dimlen+1)*2;
double *vct = (double *)xmalloc(vctsize * sizeof(double));
double *vct = (double *) Malloc(vctsize * sizeof(double));
for ( size_t i = 0; i < dimlen; ++i )
{
vct[i] = abuf[i*2];
......
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