[mapserver-commits] r9919 - trunk/mapserver/mapscript/php3

svn at osgeo.org svn at osgeo.org
Fri Mar 5 15:04:58 EST 2010


Author: dmorissette
Date: 2010-03-05 15:04:58 -0500 (Fri, 05 Mar 2010)
New Revision: 9919

Modified:
   trunk/mapserver/mapscript/php3/php_mapscript.c
Log:
Fixed metadata.nextkey() to pass NULL on first call and not an empty string (#3363)

Modified: trunk/mapserver/mapscript/php3/php_mapscript.c
===================================================================
--- trunk/mapserver/mapscript/php3/php_mapscript.c	2010-03-05 14:59:59 UTC (rev 9918)
+++ trunk/mapserver/mapscript/php3/php_mapscript.c	2010-03-05 20:04:58 UTC (rev 9919)
@@ -15868,7 +15868,7 @@
 {
     hashTableObj *self;
     pval         *pPreviousKey, *pThis;
-    char         *pszKey = "", *pszValue = NULL;
+    char         *pszKey = NULL, *pszValue = NULL;
     HashTable   *list=NULL;
 
     pThis = getThis();
@@ -15884,6 +15884,7 @@
 
     convert_to_string(pPreviousKey);
 
+    /* pszKey=NULL is used for first call */
     if (strcmp(pPreviousKey->value.str.val,"") != 0)
     {
        pszKey = pPreviousKey->value.str.val;



More information about the mapserver-commits mailing list