PostGIS  2.1.10dev-r@@SVN_REVISION@@
if ( nEntitySize  ,
psSHP->  nBufSize 
)

Definition at line 1581 of file shpopen.c.

References nEntitySize, and SfRealloc().

1582  {
1583  psSHP->pabyRec = (uchar *) SfRealloc(psSHP->pabyRec,nEntitySize);
1584  if (psSHP->pabyRec == NULL)
1585  {
1586  char szError[200];
1587 
1588  /* Reallocate previous successfull size for following features */
1589  psSHP->pabyRec = malloc(psSHP->nBufSize);
1590 
1591  sprintf( szError,
1592  "Not enough memory to allocate requested memory (nBufSize=%d). "
1593  "Probably broken SHP file", psSHP->nBufSize );
1594  psSHP->sHooks.Error( szError );
1595  return NULL;
1596  }
1597 
1598  /* Only set new buffer size after successfull alloc */
1599  psSHP->nBufSize = nEntitySize;
1600  }
static void * SfRealloc(void *pMem, int nNewSize)
Definition: shpopen.c:324
nEntitySize
Definition: shpopen.c:1580
unsigned char uchar
Definition: shpopen.c:269

Here is the call graph for this function: