qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] fix '-cpu ?' Segfault
@ 2012-03-21 12:33 Eduardo Habkost
  2012-03-21 13:24 ` Stefan Hajnoczi
  2012-03-22 13:28 ` Stefan Berger
  0 siblings, 2 replies; 7+ messages in thread
From: Eduardo Habkost @ 2012-03-21 12:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jiri Denemark

Fix stupid copy&paste mistake at commit
ecf40beae7dcbb057d4f115207f9d8276832a774: 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>
---
 vl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vl.c b/vl.c
index 112b0e0..0fccf50 100644
--- a/vl.c
+++ b/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);
     }
 
-- 
1.7.3.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-23 20:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-21 12:33 [Qemu-devel] [PATCH] fix '-cpu ?' Segfault Eduardo Habkost
2012-03-21 13:24 ` Stefan Hajnoczi
2012-03-22 13:28 ` Stefan Berger
2012-03-22 13:46   ` Andreas Färber
2012-03-22 14:05     ` Eduardo Habkost
2012-03-23 20:31   ` Michael Roth
2012-03-23 20:37     ` Alon Levy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).