[Bf-blender-cvs] [d2bf71b4122] master: Fix use of uninitialized variable

Hans Goudey noreply at git.blender.org
Mon Oct 19 16:19:20 CEST 2020


Commit: d2bf71b412233160a52775f29799a2c1331c92f4
Author: Hans Goudey
Date:   Mon Oct 19 09:19:13 2020 -0500
Branches: master
https://developer.blender.org/rBd2bf71b412233160a52775f29799a2c1331c92f4

Fix use of uninitialized variable

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

M	source/blender/editors/screen/area.c

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

diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index af6ed8ac54e..9dbdb37ef27 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -3030,7 +3030,7 @@ void ED_region_panels_draw(const bContext *C, ARegion *region)
   }
 
   /* scrollers */
-  bool use_mask;
+  bool use_mask = false;
   rcti mask;
   if (region->runtime.category &&
       (RGN_ALIGN_ENUM_FROM_MASK(region->alignment) == RGN_ALIGN_RIGHT)) {



More information about the Bf-blender-cvs mailing list