Fix Coverity reports of uninitialized scalar variable
Fixes most current reports on Coverity Scan of uninitialized scalar variable (CWE-457): https://cwe.mitre.org/data/definitions/457.html These happen most of the time (in our code) when instanciating structs without a constructor (or with an incomplete one), and later returning the instance. This is sometimes intended though, as some parameters are only used in some situations and should not be double-initialized for performance reasons (e.g. `constant` in ShaderLanguage::Token).
This commit is contained in:
parent
394e6d5ee1
commit
bf7ca623a6
21 changed files with 48 additions and 66 deletions
|
|
@ -628,7 +628,7 @@ void CanvasItemEditor::_save_canvas_item_state(List<CanvasItem *> p_canvas_items
|
|||
if (bone && bone->has_meta("_edit_bone_")) {
|
||||
// Check if we have an IK chain
|
||||
List<Node2D *> bone_ik_list;
|
||||
bool ik_found;
|
||||
bool ik_found = false;
|
||||
bone = Object::cast_to<Node2D>(bone->get_parent());
|
||||
while (bone) {
|
||||
bone_ik_list.push_back(bone);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue