[Bf-blender-cvs] [ae58db91a2f] master: Fix T87799: Crash when switching to Info Editor

Germano Cavalcantemano-wii noreply at git.blender.org
Sun Apr 25 15:44:44 CEST 2021


Commit: ae58db91a2f5399b479d9b2789603a68689dc99e
Author: Germano Cavalcantemano-wii
Date:   Sun Apr 25 10:41:28 2021 -0300
Branches: master
https://developer.blender.org/rBae58db91a2f5399b479d9b2789603a68689dc99e

Fix T87799: Crash when switching to Info Editor

Use of uninitialized variable.

Problem introduced in 87a70801c6a9fe5077ca882dec820a8f24deb07e.

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

M	source/blender/editors/space_info/space_info.c

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

diff --git a/source/blender/editors/space_info/space_info.c b/source/blender/editors/space_info/space_info.c
index 7800a90b115..e56bb44b1e6 100644
--- a/source/blender/editors/space_info/space_info.c
+++ b/source/blender/editors/space_info/space_info.c
@@ -255,7 +255,7 @@ static void info_header_region_message_subscribe(const wmRegionMessageSubscribeP
   struct wmMsgBus *mbus = params->message_bus;
   ARegion *region = params->region;
 
-  wmMsgSubscribeValue msg_sub_value_region_tag_redraw;
+  wmMsgSubscribeValue msg_sub_value_region_tag_redraw = {NULL};
   msg_sub_value_region_tag_redraw.owner = region;
   msg_sub_value_region_tag_redraw.user_data = region;
   msg_sub_value_region_tag_redraw.notify = ED_region_do_msg_notify_tag_redraw;



More information about the Bf-blender-cvs mailing list