Browse Source

Fix bug in https://trac.osgeo.org/grass/changeset/61840

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

+ 2 - 2
lib/gis/find_file.c

@@ -118,9 +118,9 @@ static const char *find_file(int misc, const char *dir,
 	}
 	if (cnt > 0) {
 	    if (misc)
-		G_file_name_misc(path, dir, element, pname, pmapset);
+		G_file_name_misc(path, dir, element, pname, pselmapset);
 	    else
-		G_file_name(path, element, name, pmapset);
+		G_file_name(path, element, name, pselmapset);
 	    if (access(path, 0) == 0) {
 		/* If the same name exists in more mapsets and print a warning */
 		if (cnt > 1 && element == pelement)