[GRASS-SVN] r35467 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 17 14:01:49 EST 2009
Author: martinl
Date: 2009-01-17 14:01:49 -0500 (Sat, 17 Jan 2009)
New Revision: 35467
Modified:
grass/trunk/lib/gis/env.c
Log:
bugfix: G__create_alt_env
Modified: grass/trunk/lib/gis/env.c
===================================================================
--- grass/trunk/lib/gis/env.c 2009-01-17 18:40:51 UTC (rev 35466)
+++ grass/trunk/lib/gis/env.c 2009-01-17 19:01:49 UTC (rev 35467)
@@ -518,10 +518,12 @@
int i;
/* copy env to env2 */
- st->env2 = st->env;
-
+ G_copy(&st->env2, &st->env, sizeof(st->env));
+
st->env.count = 0;
-
+ st->env.size = 0;
+ st->env.binds = NULL;
+
for (i = 0; i < st->env2.count; i++) {
struct bind *b = &st->env2.binds[i];
if (b->name)
More information about the grass-commit
mailing list