LogoopenSUSE Build Service > Projects
Sign Up | Log In

Deletion of unnecessary checks before specific function calls

A couple of functions performs input parameter validation before their implementations will try further actions with side effects. Some calling functions perform similar safety checks.

Functions which release a system resource are occasionally documented in the way that they tolerate the passing of a null pointer for example.
I do not see a need because of this fact that a function caller repeats a corresponding check.

Comments for home:elfring:semantic_patching:Deletion_of_checks_before_specific_function_calls (0)

Login required, please login or signup in order to comment