mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
virsh: Resolve Coverity DEADCODE
Coverity complains that on the first pass through the for loop that 'params' cannot be true, thus the ternary setting to "&" cannot be done. Since we can only ever get to this point once, drop the ternary
This commit is contained in:
parent
96aa6052a1
commit
0268a35db4
@ -9825,8 +9825,7 @@ cmdDomDisplay(vshControl *ctl, const vshCmd *cmd)
|
||||
/* TLS Port */
|
||||
if (tls_port) {
|
||||
virBufferAsprintf(&buf,
|
||||
"%stls-port=%d",
|
||||
params ? "&" : "?",
|
||||
"?tls-port=%d",
|
||||
tls_port);
|
||||
params = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user