libcue
libcue copied to clipboard
Delete unnecessary checks before some function calls
- The function “free” is documented in the way that no action shall occur for a passed null pointer. Redundant safety checks can be avoided.
- The function “cd_delete” of this software library tolerates also the passing of null pointers. It is therefore not needed that a function caller repeats a corresponding check.
Can you please add unit tests for these changes, just in case a later change breaks this behavior.
Can you follow the desire for the avoidance of redundant checks before shown function calls?