From 4b4d2b7819fdb12ee6941fc06d02918616cf0caa Mon Sep 17 00:00:00 2001 From: Godzil Date: Thu, 20 Feb 2020 02:01:35 +0000 Subject: [PATCH] Wow travis detected (by luck?) that uninitialised variable where one test failed in one specific configuration but no other one.. And thanks valgrind to give me a hint! --- source/intersection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/intersection.cpp b/source/intersection.cpp index f1d6c16..9cc7cec 100644 --- a/source/intersection.cpp +++ b/source/intersection.cpp @@ -14,7 +14,7 @@ Computation Intersection::prepareComputation(Ray r) Tuple hitP = r.position(this->t); Tuple normalV = this->object->normalAt(hitP); Tuple eyeV = -r.direction; - bool inside; + bool inside = false; if (normalV.dot(eyeV) < 0) {