]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu_monitor: Resolve Coverity NESTING_INDENT_MISMATCH
authorJohn Ferlan <jferlan@redhat.com>
Wed, 27 Aug 2014 19:59:08 +0000 (15:59 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 28 Aug 2014 12:12:17 +0000 (08:12 -0400)
The PROBE macro can expand to more than one line/statement - put curly
braces around the if statement to be safe

src/qemu/qemu_monitor.c

index d5ba08de976bb9cb80945600a31eed0abeb06044..5b2952aa442785c766e25f817acb11bf55911bd8 100644 (file)
@@ -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)