diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-06-18 08:43:55 +0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-06-23 11:12:28 -0400 |
commit | db39fcf1f690b02d612e2bfc00980700887abe03 (patch) | |
tree | 92274d002b118043816e66924b1d271c62ea2e3c /ui/console.c | |
parent | 751751732c48d8fc2facf76d72fc56ba68494f45 (diff) | |
download | qemu-db39fcf1f690b02d612e2bfc00980700887abe03.tar.gz qemu-db39fcf1f690b02d612e2bfc00980700887abe03.tar.bz2 qemu-db39fcf1f690b02d612e2bfc00980700887abe03.zip |
qemu-char: introduce qemu_chr_alloc
The next patch will modify this function to initialize state that is
common to all backends.
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'ui/console.c')
-rw-r--r-- | ui/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/console.c b/ui/console.c index 7dc4c1414c..ab8454903c 100644 --- a/ui/console.c +++ b/ui/console.c @@ -1821,7 +1821,7 @@ static CharDriverState *text_console_init(ChardevVC *vc) unsigned width = 0; unsigned height = 0; - chr = g_malloc0(sizeof(CharDriverState)); + chr = qemu_chr_alloc(); if (vc->has_width) { width = vc->width; |