[GRASS-SVN] r43210 - grass/trunk/lib/g3d

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 22 19:13:49 EDT 2010


Author: huhabla
Date: 2010-08-22 23:13:49 +0000 (Sun, 22 Aug 2010)
New Revision: 43210

Modified:
   grass/trunk/lib/g3d/g3dhistory.c
Log:
Reverted #43203 and fixed the pointer handling. 


Modified: grass/trunk/lib/g3d/g3dhistory.c
===================================================================
--- grass/trunk/lib/g3d/g3dhistory.c	2010-08-22 22:22:21 UTC (rev 43209)
+++ grass/trunk/lib/g3d/g3dhistory.c	2010-08-22 23:13:49 UTC (rev 43210)
@@ -65,7 +65,7 @@
 {
     FILE *fp;
 
-    Rast_clear_history(hist);
+    G_zero(hist, sizeof(struct History));
 
     fp = G_fopen_old_misc(G3D_DIRECTORY, G3D_HISTORY_ELEMENT, name, mapset);
     if (!fp)



More information about the grass-commit mailing list