Browse Source

Inhibit reading of environment when G_no_gisinit() is used

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40855 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 15 years ago
parent
commit
43663f5156
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/gis/gisinit.c

+ 2 - 0
lib/gis/gisinit.c

@@ -90,6 +90,8 @@ void G__no_gisinit(const char *version)
 	G_fatal_error(_("Incompatible library version for module. "
 			"You need to rebuild GRASS or untangle multiple installations."));
 
+    G_set_gisrc_mode(G_GISRC_MODE_MEMORY);
+
     gisinit();
 }