mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
vl.c: fix '-cpu ?' segfault
Fix stupid copy&paste mistake at commit
ecf40beae7
: I moved code around but kept
"optarg" on the cpu_list() call.
Reported-by: Jiri Denemark <jdenemar@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
cb1977d308
commit
1d6528af68
1 changed files with 1 additions and 1 deletions
2
vl.c
2
vl.c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue