mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05: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:
1 parent
96aa6052a1
commit
0268a35db4
1 file changed
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user