Parcourir la source

Fixed wrong histroy initialization which causes a segfault when reading
a 3d raster history file.


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43203 15284696-431f-4ddb-bdfa-cd5b030d7da7

Soeren Gebbert il y a 14 ans
Parent
commit
df260ca023
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/g3d/g3dhistory.c

+ 1 - 1
lib/g3d/g3dhistory.c

@@ -65,7 +65,7 @@ int G3d_readHistory(const char *name, const char *mapset, struct History *hist)
 {
     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)