[mapserver-commits] r13134 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Thu Feb 9 13:36:14 EST 2012


Author: tbonfort
Date: 2012-02-09 10:36:14 -0800 (Thu, 09 Feb 2012)
New Revision: 13134

Modified:
   trunk/mapserver/maputil.c
Log:
remove superfluous error detection test


Modified: trunk/mapserver/maputil.c
===================================================================
--- trunk/mapserver/maputil.c	2012-02-09 18:26:28 UTC (rev 13133)
+++ trunk/mapserver/maputil.c	2012-02-09 18:36:14 UTC (rev 13134)
@@ -2155,13 +2155,6 @@
     if( nSize == 0 )
         return NULL;
 
-    if( nSize < 0 )
-    {
-        msIO_fprintf(stderr, "msSmallMalloc(%ld): Silly size requested.\n",
-                (long) nSize );
-        return NULL;
-    }
-    
     pReturn = malloc( nSize );
     if( pReturn == NULL )
     {
@@ -2186,13 +2179,6 @@
     if ( nNewSize == 0 )
         return NULL;
 
-    if( nNewSize < 0 )
-    {
-        msIO_fprintf(stderr, "msSmallRealloc(%ld): Silly size requested.\n",
-                (long) nNewSize );
-        return NULL;
-    }
-
     pReturn = realloc( pData, nNewSize );
 
     if( pReturn == NULL )



More information about the mapserver-commits mailing list