Message ID | 52E11FF6.1070405@suse.de |
---|---|
State | New |
Headers | show |
diff --git a/ui/gtk.c b/ui/gtk.c index 6316f5b..c2210a2 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -1113,11 +1113,8 @@ static int gd_vc_chr_write(CharDriverState *chr, const uint8_t *buf, int len) static int nb_vcs; static CharDriverState *vcs[MAX_VCS]; -static CharDriverState *gd_vc_handler(ChardevVC *unused) +static CharDriverState *gd_vc_handler(CharDriverState *chr, ChardevVC *unused) { - CharDriverState *chr; - - chr = g_malloc0(sizeof(*chr)); chr->chr_write = gd_vc_chr_write;