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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 3 14:49:48 EST 2010


Author: glynn
Date: 2010-01-03 14:49:48 -0500 (Sun, 03 Jan 2010)
New Revision: 40210

Modified:
   grass/trunk/lib/gis/find_file.c
Log:
Always allocate returned mapset (so that it can be freed)


Modified: grass/trunk/lib/gis/find_file.c
===================================================================
--- grass/trunk/lib/gis/find_file.c	2010-01-03 19:45:51 UTC (rev 40209)
+++ grass/trunk/lib/gis/find_file.c	2010-01-03 19:49:48 UTC (rev 40210)
@@ -88,7 +88,7 @@
 		G_warning(_("Using <%s@%s>"),
 			  pname, pselmapset);
 	    
-	    return pselmapset;
+	    return G_store(pselmapset);
 	}
     }
     /*



More information about the grass-commit mailing list