[GRASS-SVN] r43203 - grass/trunk/lib/g3d
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Aug 22 16:41:46 EDT 2010
Author: huhabla
Date: 2010-08-22 20:41:46 +0000 (Sun, 22 Aug 2010)
New Revision: 43203
Modified:
grass/trunk/lib/g3d/g3dhistory.c
Log:
Fixed wrong histroy initialization which causes a segfault when reading
a 3d raster history file.
Modified: grass/trunk/lib/g3d/g3dhistory.c
===================================================================
--- grass/trunk/lib/g3d/g3dhistory.c 2010-08-22 08:06:50 UTC (rev 43202)
+++ grass/trunk/lib/g3d/g3dhistory.c 2010-08-22 20:41:46 UTC (rev 43203)
@@ -65,7 +65,7 @@
{
FILE *fp;
- G_zero(&hist, sizeof(struct History));
+ Rast_clear_history(hist);
fp = G_fopen_old_misc(G3D_DIRECTORY, G3D_HISTORY_ELEMENT, name, mapset);
if (!fp)
More information about the grass-commit
mailing list