[mapserver-commits] r9784 - branches/branch-5-6/mapserver

svn at osgeo.org svn at osgeo.org
Mon Feb 8 22:12:32 EST 2010


Author: pramsey
Date: 2010-02-08 22:12:31 -0500 (Mon, 08 Feb 2010)
New Revision: 9784

Modified:
   branches/branch-5-6/mapserver/mappostgis.c
Log:
Remove odd self-strdup construction.


Modified: branches/branch-5-6/mapserver/mappostgis.c
===================================================================
--- branches/branch-5-6/mapserver/mappostgis.c	2010-02-09 03:10:36 UTC (rev 9783)
+++ branches/branch-5-6/mapserver/mappostgis.c	2010-02-09 03:12:31 UTC (rev 9784)
@@ -407,11 +407,10 @@
         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