acassen / keepalived

Keepalived
https://www.keepalived.org
GNU General Public License v2.0
4.02k stars 736 forks source link

Fix some warnings identified by a static analyzer #2486

Closed pqarmitage closed 1 month ago

pqarmitage commented 1 month ago

Although none of the warnings was due to any error in the code that could cause a problem. for some of the warnings reported is was quite straightforward to modify the code in a way that was just as readable and would avoid the warnings.

Two of the warnings reported could not possibly result in an error, and checks (return code or null dereferences) were not made since the design of the code was such that they could not occur.