[GRASS-SVN] r47559 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 11 16:51:09 EDT 2011
Author: martinl
Date: 2011-08-11 13:51:09 -0700 (Thu, 11 Aug 2011)
New Revision: 47559
Modified:
grass/trunk/lib/gis/open.c
Log:
gislib: check name only if defined
Modified: grass/trunk/lib/gis/open.c
===================================================================
--- grass/trunk/lib/gis/open.c 2011-08-11 20:24:49 UTC (rev 47558)
+++ grass/trunk/lib/gis/open.c 2011-08-11 20:51:09 UTC (rev 47559)
@@ -88,7 +88,7 @@
name = xname;
}
- if (G_legal_filename(name) == -1)
+ if (*name && G_legal_filename(name) == -1)
return -1;
G_file_name(path, element, name, mapset);
More information about the grass-commit
mailing list