mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 09:55:41 +02:00
Guard against uninitialized variables
This commit is contained in:
@@ -24,9 +24,14 @@ struct draw {
|
|||||||
this->op = nop;
|
this->op = nop;
|
||||||
this->x = nx;
|
this->x = nx;
|
||||||
this->y = ny;
|
this->y = ny;
|
||||||
|
this->necessary = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
draw() {
|
draw() {
|
||||||
|
this->op = 0;
|
||||||
|
this->x = 0;
|
||||||
|
this->y = 0;
|
||||||
|
this->necessary = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator<(draw const &s) const {
|
bool operator<(draw const &s) const {
|
||||||
|
|||||||
Reference in New Issue
Block a user