[Bf-blender-cvs] [7f1d1b03adf] master: Cleanup: Fix uninitialized variable warning

Hans Goudey noreply at git.blender.org
Mon Jun 7 14:54:57 CEST 2021


Commit: 7f1d1b03adffdad000b04385cd7104255150a96d
Author: Hans Goudey
Date:   Mon Jun 7 07:54:49 2021 -0500
Branches: master
https://developer.blender.org/rB7f1d1b03adffdad000b04385cd7104255150a96d

Cleanup: Fix uninitialized variable warning

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

M	source/blender/nodes/geometry/nodes/node_geo_delete_geometry.cc

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_delete_geometry.cc b/source/blender/nodes/geometry/nodes/node_geo_delete_geometry.cc
index 0e053a6d0e9..910adc467d6 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_delete_geometry.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_delete_geometry.cc
@@ -624,6 +624,7 @@ static void delete_mesh_selection(MeshComponent &component,
       break;
     default:
       BLI_assert_unreachable();
+      mesh_out = nullptr;
       break;
   }
   component.replace_mesh_but_keep_vertex_group_names(mesh_out);



More information about the Bf-blender-cvs mailing list