Commit 562a1d39 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

remap_define_reg2d: replace Realloc by Malloc

parent fda6564b
......@@ -607,8 +607,8 @@ void remap_define_reg2d(int gridID, remapgrid_t *grid)
if ( grid->size != nx*ny ) cdoAbort("Internal error, wrong dimensions!");
grid->reg2d_center_lon = (double*) Realloc(grid->reg2d_center_lon, nxm*sizeof(double));
grid->reg2d_center_lat = (double*) Realloc(grid->reg2d_center_lat, ny*sizeof(double));
grid->reg2d_center_lon = (double*) Malloc(nxm*sizeof(double));
grid->reg2d_center_lat = (double*) Malloc( ny*sizeof(double));
grid->reg2d_center_lon[0] = 0;
grid->reg2d_center_lat[0] = 0;
......
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