[Bf-blender-cvs] [5e428b3] blender2.8: Fix unitialized variable use

Julian Eisel noreply at git.blender.org
Sat Oct 15 18:59:48 CEST 2016


Commit: 5e428b3b3ff040912a20fcc4b504f882940119c7
Author: Julian Eisel
Date:   Sat Oct 15 18:57:32 2016 +0200
Branches: blender2.8
https://developer.blender.org/rB5e428b3b3ff040912a20fcc4b504f882940119c7

Fix unitialized variable use

Own mistake in ae8e8454700.
Patch by @efi0ng, thanks!

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

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 bfb87b6..7890ce1 100644
--- a/source/blender/editors/space_outliner/outliner_edit.c
+++ b/source/blender/editors/space_outliner/outliner_edit.c
@@ -187,7 +187,7 @@ static int outliner_highlight_update(bContext *C, wmOperator *UNUSED(op), const
 	const float my = UI_view2d_region_to_view_y(&ar->v2d, event->mval[1]);
 
 	TreeElement *hovered_te = outliner_find_item_at_y(soops, &soops->tree, my);
-	bool changed;
+	bool changed = false;
 
 	if (!hovered_te || !(hovered_te->store_elem->flag & TSE_HIGHLIGHTED)) {
 		changed = outliner_set_flag(soops, &soops->tree, TSE_HIGHLIGHTED, false);




More information about the Bf-blender-cvs mailing list