]> git.ipfire.org Git - thirdparty/lldpd.git/commit
client: make it easier for Coverity to understand commands_new()
authorVincent Bernat <vincent@bernat.ch>
Sun, 21 Mar 2021 12:56:19 +0000 (13:56 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sun, 21 Mar 2021 12:56:19 +0000 (13:56 +0100)
commit61979752198d60d37c453c45c197e9f506ef8e51
treea82df42c39cc2ebdb5f22e53bd241a8f1c2ebe6c
parent4853bfbea9c99bb5ea2b978d4b26c3336ec42a51
client: make it easier for Coverity to understand commands_new()

Never returning NULL is not enough to make Coverity understands we
don't leak anything. Remove the branch in commands_new() as it must
never happen, except for the root node.
src/client/commands.c