[PATCH 16/19] qemu_monitor: Resolve Coverity NESTING_INDENT_MISMATCH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The PROBE macro can expand to more than one line/statement - put curly
braces around the if statement to be safe

Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
---
 src/qemu/qemu_monitor.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c
index d5ba08d..5b2952a 100644
--- a/src/qemu/qemu_monitor.c
+++ b/src/qemu/qemu_monitor.c
@@ -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)
-- 
1.9.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]