]> xenbits.xensource.com Git - qemu-xen-4.4-testing.git/commitdiff
console: Fix console_putchar() for CSI J
authorMarkus Armbruster <armbru@redhat.com>
Tue, 22 Nov 2011 10:59:07 +0000 (11:59 +0100)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Tue, 6 Dec 2011 09:56:40 +0000 (09:56 +0000)
It falls through to the code for CSI K.  "Erase Down" also does "Erase
End of Line", "Erase Up" also does "Erase Start of Line", and "Erase
Screen" also does "Erase Line".  Happens not to be visible.  Fix it
anyway.  Spotted by Coverity.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
console.c

index 374fcba4b5bb2effebdd046dd6c7e2937d67aa27..ce0429df8ca6b89595bf63099efdbc8d5ffffea7 100644 (file)
--- a/console.c
+++ b/console.c
@@ -1011,6 +1011,7 @@ static void console_putchar(TextConsole *s, int ch)
                     }
                     break;
                 }
+                break;
             case 'K':
                 switch (s->esc_params[0]) {
                 case 0: