summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-10-20 16:53:53 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2015-10-20 16:53:53 +0200
commit1de2f47674ab306a171bdab71fbe61543be74786 (patch)
tree90c68663c52b5f014c2db6eae806985b75a6da61
parentdadb9fbee6f2c84e5e8867ab42df0d4d2080a7d3 (diff)
examples/sphere_hunter: initialize struct in all cases
If l == 0 we would never initialize vec3 struct members. CID: 1327345
-rw-r--r--src/examples/sphere_hunter/evas_3d_sphere_hunter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/sphere_hunter/evas_3d_sphere_hunter.c b/src/examples/sphere_hunter/evas_3d_sphere_hunter.c
index e823bc3e4..87f11ae73 100644
--- a/src/examples/sphere_hunter/evas_3d_sphere_hunter.c
+++ b/src/examples/sphere_hunter/evas_3d_sphere_hunter.c
@@ -184,7 +184,7 @@ _normalize(const vec3 *v)
184{ 184{
185 185
186 double l; 186 double l;
187 vec3 vec; 187 vec3 vec = {0.0, 0.0, 0.0};
188 188
189 l = sqrt((v->x * v->x) + (v->y * v->y) + (v->z * v->z)); 189 l = sqrt((v->x * v->x) + (v->y * v->y) + (v->z * v->z));
190 190