[Bf-blender-cvs] [b19c6f8] master: Remove null-check of argument which is attributed as non-null
Sergey Sharybin
noreply at git.blender.org
Mon Sep 19 10:18:50 CEST 2016
Commit: b19c6f8f432590aa60cf49ddb2bf95e087856b0e
Author: Sergey Sharybin
Date: Mon Sep 19 10:18:10 2016 +0200
Branches: master
https://developer.blender.org/rBb19c6f8f432590aa60cf49ddb2bf95e087856b0e
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.
===================================================================
M source/blender/blenlib/intern/listbase.c
===================================================================
diff --git a/source/blender/blenlib/intern/listbase.c b/source/blender/blenlib/intern/listbase.c
index d6c0219..c9bf497 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);
More information about the Bf-blender-cvs
mailing list