[mapserver-commits] r9920 -
branches/branch-5-6/mapserver/mapscript/php3
svn at osgeo.org
svn at osgeo.org
Fri Mar 5 15:11:10 EST 2010
Author: dmorissette
Date: 2010-03-05 15:11:09 -0500 (Fri, 05 Mar 2010)
New Revision: 9920
Modified:
branches/branch-5-6/mapserver/mapscript/php3/php_mapscript.c
Log:
Fixed metadata.nextkey() to pass NULL on first call and not an empty string (#3363)
Modified: branches/branch-5-6/mapserver/mapscript/php3/php_mapscript.c
===================================================================
--- branches/branch-5-6/mapserver/mapscript/php3/php_mapscript.c 2010-03-05 20:04:58 UTC (rev 9919)
+++ branches/branch-5-6/mapserver/mapscript/php3/php_mapscript.c 2010-03-05 20:11:09 UTC (rev 9920)
@@ -16611,7 +16611,7 @@
{
hashTableObj *self;
pval *pPreviousKey, *pThis;
- char *pszKey = "", *pszValue = NULL;
+ char *pszKey = NULL, *pszValue = NULL;
HashTable *list=NULL;
pThis = getThis();
@@ -16627,6 +16627,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