[mapserver-commits] r9879 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Feb 23 11:15:11 EST 2010


Author: assefa
Date: 2010-02-23 11:15:10 -0500 (Tue, 23 Feb 2010)
New Revision: 9879

Modified:
   trunk/mapserver/maporaclespatial.c
Log:
fix build for windows

Modified: trunk/mapserver/maporaclespatial.c
===================================================================
--- trunk/mapserver/maporaclespatial.c	2010-02-23 15:53:31 UTC (rev 9878)
+++ trunk/mapserver/maporaclespatial.c	2010-02-23 16:15:10 UTC (rev 9879)
@@ -2121,6 +2121,9 @@
   /* do the actual binding */      
 
  if (success && function != FUNCTION_NONE) {
+   char* bind_key;
+   char* bind_value;
+   char* bind_tag;
      success = TRY( hand,
             /* bind in srid */
             OCIBindByName( sthand->stmthp, &bnd2p,  hand->errhp, (text *) ":srid", strlen(":srid"),(ub1 *) srid,  strlen(srid)+1, SQLT_STR, 
@@ -2133,9 +2136,7 @@
             OCIBindObject(bnd1p, hand->errhp, ordinates_tdo, (dvoid **)&ordinates, (ub4 *)0, (dvoid **)0, (ub4 *)0));
 
 	/* bind the variables from the bindvals hash */
-	char* bind_key = (char*)msFirstKeyFromHashTable(&layer->bindvals);
-	char* bind_value;
-	char* bind_tag;
+	bind_key = (char*)msFirstKeyFromHashTable(&layer->bindvals);
 	while(bind_key != NULL) {
 		bind_value = msLookupHashTable(&layer->bindvals, bind_key);
 		bind_tag = (char*)malloc(sizeof(char) * strlen(bind_key) + 1);



More information about the mapserver-commits mailing list