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:
Stefan Schmidt 2015-10-20 16:53:53 +02:00
parent 0a8e616416
commit fa8f1374ee
1 changed files with 1 additions and 1 deletions

View File

@ -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));