[GRASS-SVN] r52297 - grass/trunk/general/g.parser

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 4 01:21:01 PDT 2012


Author: annakrat
Date: 2012-07-04 01:21:01 -0700 (Wed, 04 Jul 2012)
New Revision: 52297

Modified:
   grass/trunk/general/g.parser/main.c
Log:
bugfix: debug message in g.parser can cause error in wxGUI

Modified: grass/trunk/general/g.parser/main.c
===================================================================
--- grass/trunk/general/g.parser/main.c	2012-07-03 21:47:59 UTC (rev 52296)
+++ grass/trunk/general/g.parser/main.c	2012-07-04 08:21:01 UTC (rev 52297)
@@ -66,8 +66,11 @@
 
     filename = argv[1];
     argv++, argc--;
-    G_debug(2, "filename = %s", filename);
+    /* g.parser should write to stderr only in case of an error. */
+    /* G_debug output is not an error. */
 
+    /* G_debug(2, "filename = %s", filename); */
+
     ctx.fp = fopen(filename, "r");
     if (!ctx.fp) {
 	perror(_("Unable to open script file"));



More information about the grass-commit mailing list