[GRASS-SVN] r29954 - grass/branches/releasebranch_5_5/src/raster/r.le/r.le.setup

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


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

Modified:
   grass/branches/releasebranch_5_5/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_5/src/raster/r.le/r.le.setup/ask_group.c
===================================================================
--- grass/branches/releasebranch_5_5/src/raster/r.le/r.le.setup/ask_group.c	2008-02-05 06:57:23 UTC (rev 29953)
+++ grass/branches/releasebranch_5_5/src/raster/r.le/r.le.setup/ask_group.c	2008-02-05 06:57:42 UTC (rev 29954)
@@ -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