summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBogdan Devichev <b.devichev@samsung.com>2014-11-17 17:14:23 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2014-11-17 17:17:11 +0100
commit237e3031005d9e2d44e16d13bc187bc4185a0036 (patch)
tree3464b48d6877a96619c2310fb48b1238cdd88766
parent36f0fb4689a305956cb49755d79cd472dcc240b8 (diff)
evas/3d: Fix dereferencing a pointer that might be null found by coverity
Summary: @fix CID: 1254626 Reviewers: cedric, artem.popov, Oleksander Subscribers: cedric, stefan_schmidt Differential Revision: https://phab.enlightenment.org/D1673
-rw-r--r--src/lib/evas/canvas/evas_3d_mesh_saver_ply.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_3d_mesh_saver_ply.c b/src/lib/evas/canvas/evas_3d_mesh_saver_ply.c
index f2376a33bb..a0ba9457d3 100644
--- a/src/lib/evas/canvas/evas_3d_mesh_saver_ply.c
+++ b/src/lib/evas/canvas/evas_3d_mesh_saver_ply.c
@@ -17,6 +17,11 @@ evas_3d_mesh_save_ply(Evas_3D_Mesh *mesh, const char *file, Evas_3D_Mesh_Frame *
17 17
18 Evas_3D_Mesh_Data *pd = eo_data_scope_get(mesh, EVAS_3D_MESH_CLASS); 18 Evas_3D_Mesh_Data *pd = eo_data_scope_get(mesh, EVAS_3D_MESH_CLASS);
19 FILE *_ply_file = fopen(file, "w+"); 19 FILE *_ply_file = fopen(file, "w+");
20 if (!_ply_file)
21 {
22 ERR("File open '%s' for save failed", file);
23 return;
24 }
20 25
21 fprintf(_ply_file,"ply\nformat ascii 1.0\ncomment Created by EFL evas_3d_mesh_saver_ply.c" \ 26 fprintf(_ply_file,"ply\nformat ascii 1.0\ncomment Created by EFL evas_3d_mesh_saver_ply.c" \
22 "version 1 (sub 0) - www.enlightenment.org, source file: ''\n"); 27 "version 1 (sub 0) - www.enlightenment.org, source file: ''\n");