[Bf-blender-cvs] [a98b02f] master: Fix uninitialized var use

Campbell Barton noreply at git.blender.org
Fri Aug 21 06:52:37 CEST 2015


Commit: a98b02ff941edb1d92892f520641433582754f0d
Author: Campbell Barton
Date:   Fri Aug 21 14:46:30 2015 +1000
Branches: master
https://developer.blender.org/rBa98b02ff941edb1d92892f520641433582754f0d

Fix uninitialized var use

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

M	source/blender/editors/physics/particle_object.c

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

diff --git a/source/blender/editors/physics/particle_object.c b/source/blender/editors/physics/particle_object.c
index d3ab2bc..327ce06 100644
--- a/source/blender/editors/physics/particle_object.c
+++ b/source/blender/editors/physics/particle_object.c
@@ -998,7 +998,7 @@ static void remove_particle_systems_from_object(Object *ob_to)
 static bool copy_particle_systems_to_object(Scene *scene, Object *ob_from, ParticleSystem *single_psys_from, Object *ob_to, int space)
 {
 	ModifierData *md;
-	ParticleSystem *psys_start, *psys, *psys_from;
+	ParticleSystem *psys_start = NULL, *psys, *psys_from;
 	ParticleSystem **tmp_psys;
 	DerivedMesh *final_dm;
 	CustomDataMask cdmask;




More information about the Bf-blender-cvs mailing list