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:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-09-22 20:28:38 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-09-22 20:28:38 +0400
commit9ea32d34c441fba68f7536171351ff386490df8c (patch)
tree3b8f11a599edd873251fdd907dc4dbbbe13b0032 /source/blender/blenlib/intern/bpath.c
parentd3a76bc507f2ca2f5fd80d35408388962cd9a4ea (diff)
Fix #28722: Segfault when reading volumetric clouds example
Added checking for voxel data isn't NULL.
Diffstat (limited to 'source/blender/blenlib/intern/bpath.c')
-rw-r--r--source/blender/blenlib/intern/bpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/bpath.c b/source/blender/blenlib/intern/bpath.c
index 654ade8955f..1c5aab7659d 100644
--- a/source/blender/blenlib/intern/bpath.c
+++ b/source/blender/blenlib/intern/bpath.c
@@ -244,7 +244,7 @@ static struct Tex *tex_stepdata__internal(struct Tex *tex, const int step_next,
tex= tex->id.next;
while (tex) {
- if (tex->type == TEX_VOXELDATA && TEX_VD_IS_SOURCE_PATH(tex->vd->file_format))
+ if (tex->type == TEX_VOXELDATA && tex->vd && TEX_VD_IS_SOURCE_PATH(tex->vd->file_format))
break;
/* image is not a image with a path, skip it */
tex= tex->id.next;