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:
authorKent Mein <mein@cs.umn.edu>2009-03-27 19:27:48 +0300
committerKent Mein <mein@cs.umn.edu>2009-03-27 19:27:48 +0300
commite392eb4d9c9eb98730a841cb4317835122d69287 (patch)
tree8169efac0b5d3a3bb74e68be7802c5f3cd7b73a2
parentd585d85cc1692cee815518fac24d63a82880f686 (diff)
Fixed a couple of null issues spotted by coverity.
CIDS: 42 and 470 Kent
-rw-r--r--source/blender/blenkernel/intern/anim.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/anim.c b/source/blender/blenkernel/intern/anim.c
index 731c2a18c55..87d7bfc4853 100644
--- a/source/blender/blenkernel/intern/anim.c
+++ b/source/blender/blenkernel/intern/anim.c
@@ -223,14 +223,16 @@ int where_on_path(Object *ob, float ctime, float *vec, float *dir) /* returns OK
cu= ob->data;
if(cu->path==NULL || cu->path->data==NULL) {
printf("no path!\n");
+ return 0;
}
path= cu->path;
fp= path->data;
/* test for cyclic */
bl= cu->bev.first;
+ if (!bl) return 0;
if (!bl->nr) return 0;
- if(bl && bl->poly> -1) cycl= 1;
+ if(bl->poly> -1) cycl= 1;
ctime *= (path->len-1);