fixes for NULL checks, remove some redundant checks and add some in that have been removed by accident as code has been updated.

This commit is contained in:
2012-09-14 06:17:14 +00:00
parent 3957efdd38
commit 7a71f58af3
17 changed files with 58 additions and 65 deletions

View File

@@ -412,7 +412,7 @@ static void add_bezt_to_keyblocks_list(DLRBT_Tree *blocks, DLRBT_Tree *beztTree,
* -> firstly, handles must have same central value as each other
* -> secondly, handles which control that section of the curve must be constant
*/
if ((!prev) || (!beztn)) return;
if (prev == NULL) return;
if (IS_EQF(beztn->vec[1][1], prev->vec[1][1]) == 0) return;
if (IS_EQF(beztn->vec[1][1], beztn->vec[0][1]) == 0) return;
if (IS_EQF(prev->vec[1][1], prev->vec[2][1]) == 0) return;