diff options
Diffstat (limited to 'monitor/hmp.c')
-rw-r--r-- | monitor/hmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/monitor/hmp.c b/monitor/hmp.c index cbbee6477a..379e366984 100644 --- a/monitor/hmp.c +++ b/monitor/hmp.c @@ -1398,12 +1398,12 @@ static void monitor_readline_flush(void *opaque) void monitor_init_hmp(Chardev *chr, int flags) { MonitorHMP *mon = g_new0(MonitorHMP, 1); - bool use_readline = flags & MONITOR_USE_READLINE; - monitor_data_init(&mon->common, flags, false, false); + monitor_data_init(&mon->common, false, false, false); qemu_chr_fe_init(&mon->common.chr, chr, &error_abort); - if (use_readline) { + mon->use_readline = flags & MONITOR_USE_READLINE; + if (mon->use_readline) { mon->rs = readline_init(monitor_readline_printf, monitor_readline_flush, mon, |