Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-01-13 15:14:13 +0300
committerTon Roosendaal <ton@blender.org>2006-01-13 15:14:13 +0300
commit9d889a94b752b327717c0aa7309a8a2457f2fce9 (patch)
treeac07d00cc233ac14de1f87c571d9361684aa1ee0 /source/blender/blenkernel
parent5951b4dda794fbafd4a595bb897e0206eb0a4bcf (diff)
Bugfix as provided by 'stealth apprentice' on the bf-comitters list.
Function get_constraint_target() should catch the case when a constraint has unknown type, to prevent a pointer to become unitialized.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/constraint.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index 5b7a78e2db6..223c27923f8 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -382,6 +382,9 @@ Object *get_constraint_target(bConstraint *con, char **subtarget)
return (data->tar);
}
break;
+ default:
+ *subtarget= NULL;
+ break;
}
return NULL;