[mapserver-commits] r9783 - branches/branch-5-4/mapserver
svn at osgeo.org
svn at osgeo.org
Mon Feb 8 22:10:36 EST 2010
Author: pramsey
Date: 2010-02-08 22:10:36 -0500 (Mon, 08 Feb 2010)
New Revision: 9783
Modified:
branches/branch-5-4/mapserver/mappostgis.c
Log:
Remove odd self-strdup from patch.
Modified: branches/branch-5-4/mapserver/mappostgis.c
===================================================================
--- branches/branch-5-4/mapserver/mappostgis.c 2010-02-09 03:05:11 UTC (rev 9782)
+++ branches/branch-5-4/mapserver/mappostgis.c 2010-02-09 03:10:36 UTC (rev 9783)
@@ -407,11 +407,11 @@
return(MS_FAILURE);
}
- strVersion = (char *)PQparameterStatus(pgconn, "server_version");
- if (strVersion == NULL)
+ if ( ! PQparameterStatus(pgconn, "server_version") )
return(MS_FAILURE);
- strVersion = strdup(strVersion);
+ strVersion = strdup(PQparameterStatus(pgconn, "server_version"));
+
if( ! strVersion )
return MS_FAILURE;
strParts[j] = strVersion;
More information about the mapserver-commits
mailing list