[Bf-blender-cvs] [cba5137f32f] master: Fix crash in outliner on cursor hover

Nathan Craddock noreply at git.blender.org
Wed Dec 2 17:29:58 CET 2020


Commit: cba5137f32f925d8216288ef6708707e98f5aef0
Author: Nathan Craddock
Date:   Wed Dec 2 09:25:45 2020 -0700
Branches: master
https://developer.blender.org/rBcba5137f32f925d8216288ef6708707e98f5aef0

Fix crash in outliner on cursor hover

The previous commit surfaced a bug introduced in rBab4654cdfe8f in which
a boolean wasn't initialized to false.

===================================================================

M	source/blender/editors/space_outliner/outliner_edit.c

===================================================================

diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c
index 6c0759b9842..a1ff6193cd0 100644
--- a/source/blender/editors/space_outliner/outliner_edit.c
+++ b/source/blender/editors/space_outliner/outliner_edit.c
@@ -118,7 +118,7 @@ static int outliner_highlight_update(bContext *C, wmOperator *UNUSED(op), const
       space_outliner, &space_outliner->tree, view_mval[1]);
 
   TreeElement *icon_te = NULL;
-  bool is_over_icon;
+  bool is_over_icon = false;
   if (hovered_te) {
     icon_te = outliner_find_item_at_x_in_row(
         space_outliner, hovered_te, view_mval[0], NULL, &is_over_icon);



More information about the Bf-blender-cvs mailing list