[GRASS-SVN] r40709 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 27 19:16:10 EST 2010


Author: glynn
Date: 2010-01-27 19:16:09 -0500 (Wed, 27 Jan 2010)
New Revision: 40709

Modified:
   grass/trunk/lib/gis/spawn.c
Log:
Ensure environment array is NULL-terminated


Modified: grass/trunk/lib/gis/spawn.c
===================================================================
--- grass/trunk/lib/gis/spawn.c	2010-01-27 23:27:57 UTC (rev 40708)
+++ grass/trunk/lib/gis/spawn.c	2010-01-28 00:16:09 UTC (rev 40709)
@@ -472,6 +472,8 @@
     for (i = 0; i < num_bindings; i++)
 	add_binding(newenv, &n, &bindings[i]);
 
+    newenv[num_bindings + n] = NULL;
+
     return newenv;
 }
 



More information about the grass-commit mailing list