diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-05-01 19:14:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-01 19:14:07 +0200 |
commit | de97339a2d66cc9e3bd9ab77dd4e0c5c6534a869 (patch) | |
tree | 90a5f1949ce557c33e5f97147d4021c96500dadd /core | |
parent | c9abe88110abdc51bf520cd9af95e59374f7c0cc (diff) | |
parent | bf7ca623a65f25cc4ac7a3ca0d6635331ec07c25 (diff) |
Merge pull request #18291 from akien-mga/coverity-uninitialized-scalar-var
Fix Coverity reports of uninitialized scalar variable
Diffstat (limited to 'core')
-rw-r--r-- | core/class_db.cpp | 2 | ||||
-rw-r--r-- | core/math/quick_hull.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/core/class_db.cpp b/core/class_db.cpp index 92aa131e2d..08c1ade679 100644 --- a/core/class_db.cpp +++ b/core/class_db.cpp @@ -254,11 +254,13 @@ HashMap<StringName, StringName, StringNameHasher> ClassDB::compat_classes; ClassDB::ClassInfo::ClassInfo() { + api = API_NONE; creation_func = NULL; inherits_ptr = NULL; disabled = false; exposed = false; } + ClassDB::ClassInfo::~ClassInfo() { } diff --git a/core/math/quick_hull.cpp b/core/math/quick_hull.cpp index 102e454e02..fc90417413 100644 --- a/core/math/quick_hull.cpp +++ b/core/math/quick_hull.cpp @@ -74,7 +74,7 @@ Error QuickHull::build(const Vector<Vector3> &p_points, Geometry::MeshData &r_me int longest_axis = aabb.get_longest_axis_index(); //first two vertices are the most distant - int simplex[4]; + int simplex[4] = { 0 }; { real_t max = 0, min = 0; |