Преглед изворни кода

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 пре 14 година
родитељ
комит
df260ca023
1 измењених фајлова са 1 додато и 1 уклоњено
  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)