mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
qemu_monitor: Resolve Coverity NESTING_INDENT_MISMATCH
The PROBE macro can expand to more than one line/statement - put curly braces around the if statement to be safe
This commit is contained in:
parent
91a60a560f
commit
ee8b6245e9
@ -506,10 +506,11 @@ qemuMonitorIOWrite(qemuMonitorPtr mon)
|
||||
mon->msg->txLength - mon->msg->txOffset,
|
||||
done, errno);
|
||||
|
||||
if (mon->msg->txFD != -1)
|
||||
if (mon->msg->txFD != -1) {
|
||||
PROBE(QEMU_MONITOR_IO_SEND_FD,
|
||||
"mon=%p fd=%d ret=%d errno=%d",
|
||||
mon, mon->msg->txFD, done, errno);
|
||||
}
|
||||
|
||||
if (done < 0) {
|
||||
if (errno == EAGAIN)
|
||||
|
Loading…
x
Reference in New Issue
Block a user