]> git.proxmox.com Git - qemu.git/blobdiff - monitor.c
qga/service-win32.c: diagnostic output should go to stderr
[qemu.git] / monitor.c
index 62aaebe660eeb2fc4e737b3d721f97829e2c69e7..dee980ca5faeae319a43a6be8d4ef54b60d9b79b 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -281,7 +281,7 @@ void monitor_flush(Monitor *mon)
     buf = qstring_get_str(mon->outbuf);
     len = qstring_get_length(mon->outbuf);
 
-    if (mon && len && !mon->mux_out) {
+    if (len && !mon->mux_out) {
         rc = qemu_chr_fe_write(mon->chr, (const uint8_t *) buf, len);
         if (rc == len) {
             /* all flushed */