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:
authorCampbell Barton <ideasman42@gmail.com>2013-03-08 07:07:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-08 07:07:32 +0400
commitb9554c86dc02b9fa83a6b344129b58102b600242 (patch)
tree4d94992048996a7d917e367d17430ac457dd352c /source/blender/bmesh
parentd9ec7e235401a97764a177b6722af54ff83660c3 (diff)
fix null pointer dereference in BM_edge_is_contiguous() (own code).
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r--source/blender/bmesh/intern/bmesh_queries.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/bmesh/intern/bmesh_queries.c b/source/blender/bmesh/intern/bmesh_queries.c
index 44dc483d5a7..6c008dedd53 100644
--- a/source/blender/bmesh/intern/bmesh_queries.c
+++ b/source/blender/bmesh/intern/bmesh_queries.c
@@ -769,9 +769,9 @@ int BM_edge_is_manifold(BMEdge *e)
bool BM_edge_is_contiguous(BMEdge *e)
{
const BMLoop *l = e->l;
- const BMLoop *l_other = l->radial_next;
- return (l && (l_other != l) && /* not 0 or 1 face users */
- (l_other->radial_next == l) && /* 2 face users */
+ const BMLoop *l_other;
+ return (l && ((l_other = l->radial_next) != l) && /* not 0 or 1 face users */
+ (l_other->radial_next == l) && /* 2 face users */
(l_other->v != l->v));
}