summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_3d_utils.h
diff options
context:
space:
mode:
authorOleksandr Shcherbina <o.shcherbina@samsung.com>2015-11-23 08:18:51 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-11-23 08:18:53 +0100
commit3a56b3f01391771206c7ee274817a86ca88d38c6 (patch)
tree348ee1904d7abc6edbe38c2286a512bea9dae87c /src/lib/evas/include/evas_3d_utils.h
parent6866d256e8df02e99bd4a17030703372cdb2c8b7 (diff)
evas: fix uninitialize variable in convex_hull_vertex_set function
Summary: A bit of useless claim, becouse parameter coord always have value 0 or 1 or 2. May be for escape problem in future. @fix CID: 1339781 Reviewers: raster, cedric Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D3349 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/include/evas_3d_utils.h')
-rw-r--r--src/lib/evas/include/evas_3d_utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/include/evas_3d_utils.h b/src/lib/evas/include/evas_3d_utils.h
index 23d338d448..7c9b34e393 100644
--- a/src/lib/evas/include/evas_3d_utils.h
+++ b/src/lib/evas/include/evas_3d_utils.h
@@ -1578,7 +1578,7 @@ convex_hull_vertex_set(Evas_Triangle3 *el, unsigned short int *vertex_count, flo
1578 unsigned short int **index, unsigned int k, int *leader, int coord) 1578 unsigned short int **index, unsigned int k, int *leader, int coord)
1579{ 1579{
1580 int color_coords, normal_coords; 1580 int color_coords, normal_coords;
1581 Evas_Vec3 vect; 1581 Evas_Vec3 vect = {0};
1582 switch (coord) 1582 switch (coord)
1583 { 1583 {
1584 case 0: 1584 case 0:
@@ -1904,7 +1904,7 @@ evas_convex_hull_get(float *data, int count, int stride, Eina_Inarray *vertex,
1904 on_plain = EINA_FALSE; 1904 on_plain = EINA_FALSE;
1905 right = EINA_FALSE; 1905 right = EINA_FALSE;
1906 1906
1907 /* The case when several points are found, is discussed below. 1907 /* The case when several points are found, is discussed below.
1908 This case is interesting because the convex hull in the 1908 This case is interesting because the convex hull in the
1909 two-dimensional subspace should be filled further */ 1909 two-dimensional subspace should be filled further */
1910 if ((cos != 1.0) && (1 < eina_array_count(&arr_candidates))) 1910 if ((cos != 1.0) && (1 < eina_array_count(&arr_candidates)))