[GRASS-SVN] r29953 - grass/branches/releasebranch_5_4/src/raster/r.le/r.le.setup

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 5 01:57:23 EST 2008


Author: hamish
Date: 2008-02-05 01:57:23 -0500 (Tue, 05 Feb 2008)
New Revision: 29953

Modified:
   grass/branches/releasebranch_5_4/src/raster/r.le/r.le.setup/ask_group.c
Log:
fix segfault due to unset pointer (merge from trunk)

Modified: grass/branches/releasebranch_5_4/src/raster/r.le/r.le.setup/ask_group.c
===================================================================
--- grass/branches/releasebranch_5_4/src/raster/r.le/r.le.setup/ask_group.c	2008-02-05 06:53:14 UTC (rev 29952)
+++ grass/branches/releasebranch_5_4/src/raster/r.le/r.le.setup/ask_group.c	2008-02-05 06:57:23 UTC (rev 29953)
@@ -341,7 +341,7 @@
   char 		*buf;
 
   G_system("clear");
-  fopen0("r.le.para/from_to", "w");
+  fp = fopen0("r.le.para/from_to", "w");
   buf = G_malloc(513);
 
   fprintf(stderr, "\n\n  Please enter \"FROM\" attribute group followed by \"0 end\"\n");



More information about the grass-commit mailing list