提交 1d6528af 编写于 作者: E Eduardo Habkost 提交者: Stefan Hajnoczi

vl.c: fix '-cpu ?' segfault

Fix stupid copy&paste mistake at commit
ecf40bea: I moved code around but kept
"optarg" on the cpu_list() call.
Reported-by: NJiri Denemark <jdenemar@redhat.com>
Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
上级 cb1977d3
......@@ -3196,7 +3196,7 @@ int main(int argc, char **argv, char **envp)
cpudef_init();
if (cpu_model && *cpu_model == '?') {
list_cpus(stdout, &fprintf, optarg);
list_cpus(stdout, &fprintf, cpu_model);
exit(0);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册