[mapserver-commits] r13233 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Tue Mar 13 05:03:01 EDT 2012
Author: tbonfort
Date: 2012-03-13 02:03:01 -0700 (Tue, 13 Mar 2012)
New Revision: 13233
Modified:
trunk/mapserver/mapfile.c
Log:
remove superfluous test, msStrDup never returns NULL
Modified: trunk/mapserver/mapfile.c
===================================================================
--- trunk/mapserver/mapfile.c 2012-03-12 16:10:18 UTC (rev 13232)
+++ trunk/mapserver/mapfile.c 2012-03-13 09:03:01 UTC (rev 13233)
@@ -205,10 +205,6 @@
if(msyylex() == MS_STRING) {
if(*s) free(*s); /* avoid leak */
*s = msStrdup(msyystring_buffer);
- if (*s == NULL) {
- msSetError(MS_MEMERR, NULL, "getString()");
- return(MS_FAILURE);
- }
return(MS_SUCCESS);
}
More information about the mapserver-commits
mailing list