summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-10-20 16:53:53 +0200
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-12 10:15:03 +0100
commit2d5a9724cc94074063ae61691998923d5815ca87 (patch)
tree90c68663c52b5f014c2db6eae806985b75a6da61
parent8998397de3b8d4235d02a7418061a9868be2e754 (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