]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: Resolve Coverity FORWARD_NULL
authorJohn Ferlan <jferlan@redhat.com>
Wed, 13 May 2015 15:10:47 +0000 (11:10 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Sun, 24 May 2015 11:01:48 +0000 (07:01 -0400)
commit38f0fc19af92051256664bae78ee8679cc9c926c
tree12e60b04a62ca12aea03bbbe700b25b8f6a0d64c
parent264965d927bed3d31b55ad3dd50e9d583e701810
network: Resolve Coverity FORWARD_NULL

To silence Coverity just add a 'p &&' in front of the check in
networkFindUnusedBridgeName after the strchr() call.  Even though
we know it's not possible to have strchr return NULL since the only
way into the function is if there is a '%' in def->bridge or it's NULL.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/network/bridge_driver.c