forked from enlightenment/efl
examples/sphere_hunter: initialize struct in all cases
If l == 0 we would never initialize vec3 struct members. CID: 1327345
This commit is contained in:
parent
0a8e616416
commit
fa8f1374ee
|
@ -184,7 +184,7 @@ _normalize(const vec3 *v)
|
|||
{
|
||||
|
||||
double l;
|
||||
vec3 vec;
|
||||
vec3 vec = {0.0, 0.0, 0.0};
|
||||
|
||||
l = sqrt((v->x * v->x) + (v->y * v->y) + (v->z * v->z));
|
||||
|
||||
|
|
Loading…
Reference in New Issue