From 9160e6add5e4bd65fe003edee75a7b307ef09ea2 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Fri, 14 Oct 2016 12:19:56 -0700 Subject: [PATCH] Guard against uninitialized variables --- geometry.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/geometry.hpp b/geometry.hpp index 51301c6..5ba9455 100644 --- a/geometry.hpp +++ b/geometry.hpp @@ -24,9 +24,14 @@ struct draw { this->op = nop; this->x = nx; this->y = ny; + this->necessary = 0; } draw() { + this->op = 0; + this->x = 0; + this->y = 0; + this->necessary = 0; } bool operator<(draw const &s) const {