[GRASS-SVN] r59397 - grass-addons/grass7/raster/r.stream.channel

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 27 03:46:40 PDT 2014


Author: martinl
Date: 2014-03-27 03:46:40 -0700 (Thu, 27 Mar 2014)
New Revision: 59397

Modified:
   grass-addons/grass7/raster/r.stream.channel/main.c
Log:
r.stream.channel: G_legal_filename() is called by Rast_open_new()

Modified: grass-addons/grass7/raster/r.stream.channel/main.c
===================================================================
--- grass-addons/grass7/raster/r.stream.channel/main.c	2014-03-27 10:35:51 UTC (rev 59396)
+++ grass-addons/grass7/raster/r.stream.channel/main.c	2014-03-27 10:46:40 UTC (rev 59397)
@@ -146,31 +146,6 @@
     G_get_window(&window);
     G_begin_distance_calculations();
 
-    if (out_identifier_opt->answer)
-	if (G_legal_filename(out_identifier_opt->answer) < 0)
-	    G_fatal_error(_("<%s> is an illegal difference map name"),
-			  out_identifier_opt->answer);
-
-    if (out_difference_opt->answer)
-	if (G_legal_filename(out_difference_opt->answer) < 0)
-	    G_fatal_error(_("<%s> is an illegal difference map name"),
-			  out_difference_opt->answer);
-
-    if (out_distance_opt->answer)
-	if (G_legal_filename(out_distance_opt->answer) < 0)
-	    G_fatal_error(_("<%s> is an illegal distance map name"),
-			  out_distance_opt->answer);
-
-    if (out_gradient_opt->answer)
-	if (G_legal_filename(out_gradient_opt->answer) < 0)
-	    G_fatal_error(_("<%s> is an illegal gradient map name"),
-			  out_gradient_opt->answer);
-
-    if (out_curvature_opt->answer)
-	if (G_legal_filename(out_curvature_opt->answer) < 0)
-	    G_fatal_error(_("<%s> is an illegal gradient map name"),
-			  out_curvature_opt->answer);
-
     if (!segmentation) {
 	MAP map_dirs, map_streams, map_elevation, map_output, map_identifier;
 	CELL **streams, **dirs, **identifier = NULL;



More information about the grass-commit mailing list