alloc cleared memory for mesh structure

This commit is contained in:
2011-09-08 11:36:48 +00:00
parent 431782f85e
commit 318bf9140a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ h5t_open_tetrahedral_mesh (
TETRAHEDRAL_MESHES_GRPNAME,
name));
TRY (*mesh = h5_alloc (NULL, sizeof(**mesh)));
TRY (*mesh = h5_calloc (1, sizeof(**mesh)));
h5t_mesh_t* m = *mesh;
TRY (h5tpriv_init_mesh (
m,
+1 -1
View File
@@ -101,7 +101,7 @@ h5t_add_triangle_mesh (
TRIANGLE_MESHES_GRPNAME,
name));
TRY (*mesh = h5_alloc (NULL, sizeof(**mesh)));
TRY (*mesh = h5_calloc (1, sizeof(**mesh)));
h5t_mesh_t* m = *mesh;
TRY (h5tpriv_init_mesh (
m,