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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-06-08 09:46:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-06-08 09:46:00 +0400
commita6f3e15d6ec95e9649c08f50b41385ea293275e2 (patch)
tree88046e5b15d4f28a18236c99378e1361c8368f57 /source
parent36db2a2cff58d3bd3dd0f7e8e0d2fbec36e32412 (diff)
- remove redundant NULL checks from mallocn's local linked list functions.
- minor changes to warning cleanup.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/mask/mask_add.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/mask/mask_add.c b/source/blender/editors/mask/mask_add.c
index a8363524dd7..0bc9adb6577 100644
--- a/source/blender/editors/mask/mask_add.c
+++ b/source/blender/editors/mask/mask_add.c
@@ -411,7 +411,7 @@ static int add_vertex_extrude(bContext *C, Mask *mask, MaskLayer *masklay, const
float tangent_co[2];
int do_cyclic_correct = FALSE;
int do_recalc_src = FALSE; /* when extruding from endpoints only */
- int do_prev = FALSE; /* use prev point rather then next?? */
+ int do_prev; /* use prev point rather then next?? */
if (!masklay) {
return FALSE;
@@ -448,6 +448,7 @@ static int add_vertex_extrude(bContext *C, Mask *mask, MaskLayer *masklay, const
do_recalc_src = TRUE;
}
else {
+ do_prev = FALSE; /* quiet warning */
/* should never get here */
BLI_assert(0);
}