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>2016-09-19 11:18:10 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-09-19 11:18:10 +0300
commitb19c6f8f432590aa60cf49ddb2bf95e087856b0e (patch)
tree8fdd6185e1ac5d62b1d66975d76832a3f5217d00 /source/blender/blenlib/intern
parent722226b61063a798fd3775e1cc4234045c3e1dbb (diff)
Remove null-check of argument which is attributed as non-null
This was logically incorrect and was causing warning and compilation errors with strict compiler flags.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r--source/blender/blenlib/intern/listbase.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/listbase.c b/source/blender/blenlib/intern/listbase.c
index d6c0219ea23..c9bf4976ae8 100644
--- a/source/blender/blenlib/intern/listbase.c
+++ b/source/blender/blenlib/intern/listbase.c
@@ -356,7 +356,7 @@ bool BLI_listbase_link_move(ListBase *listbase, void *vlink, int step)
Link *hook = link;
const bool is_up = step < 0;
- if (step == 0 || vlink == NULL) {
+ if (step == 0) {
return false;
}
BLI_assert(BLI_findindex(listbase, link) != -1);