Browse Source

Always allocate returned mapset (so that it can be freed)

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

+ 1 - 1
lib/gis/find_file.c

@@ -88,7 +88,7 @@ static const char *find_file(
 		G_warning(_("Using <%s@%s>"),
 			  pname, pselmapset);
 	    
-	    return pselmapset;
+	    return G_store(pselmapset);
 	}
     }
     /*