summaryrefslogtreecommitdiff
path: root/src/modules/evas/model_loaders
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-05-20 21:43:46 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-05-20 21:46:50 +0900
commita52c7da7140a04017916e3a130d3dcb7af385cf4 (patch)
tree7f9f8aabb149e8e5ec9b5cd2dbb1241d20489320 /src/modules/evas/model_loaders
parentf40a452ee140b0cdc3734eb59b4beb51d2db88d2 (diff)
evas 3d - fix mesh savers/loaders to not leave memory unset
i've been gettign persistent evas test suite suite failures ffor a while. annoying as i can't get 100% pass anymore. it's due to segv's in evas test suite thanks to chunks of uninitialized memory in the mesh loaders/saver code. this fixes that @fix
Diffstat (limited to 'src/modules/evas/model_loaders')
-rw-r--r--src/modules/evas/model_loaders/ply/evas_model_load_ply.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/evas/model_loaders/ply/evas_model_load_ply.c b/src/modules/evas/model_loaders/ply/evas_model_load_ply.c
index 971e951..35e011f 100644
--- a/src/modules/evas/model_loaders/ply/evas_model_load_ply.c
+++ b/src/modules/evas/model_loaders/ply/evas_model_load_ply.c
@@ -191,9 +191,9 @@ void
191evas_model_load_file_ply(Evas_Canvas3D_Mesh *mesh, Eina_File *file) 191evas_model_load_file_ply(Evas_Canvas3D_Mesh *mesh, Eina_File *file)
192{ 192{
193 char *current = NULL, *map = NULL; 193 char *current = NULL, *map = NULL;
194 Evas_Model_Load_Save_Header header; 194 Evas_Model_Load_Save_Header header = { 0 };
195 Evas_Model_Load_Save_Data data; 195 Evas_Model_Load_Save_Data data = { 0 };
196 Evas_Model_Load_Save_Stride stride; 196 Evas_Model_Load_Save_Stride stride = { 0 };
197 197
198 map = eina_file_map_all(file, EINA_FILE_SEQUENTIAL); 198 map = eina_file_map_all(file, EINA_FILE_SEQUENTIAL);
199 if (map == NULL) 199 if (map == NULL)