Re: [Qemu-devel] [PATCH] vl.c: Avoid segfault when started with no arguments

2012-02-24 Thread Anthony Liguori
On 02/22/2012 04:40 PM, Peter Maydell wrote: Fix a bug (introduced in commit a0abe47) where a command line which specified no machine arguments (either explicitly or implicitly via -kernel&co) would result in a segfault because of a NULL pointer returned from qemu_opts_find(qemu_find_opts("machin

[Qemu-devel] [PATCH] vl.c: Avoid segfault when started with no arguments

2012-02-22 Thread Peter Maydell
Fix a bug (introduced in commit a0abe47) where a command line which specified no machine arguments (either explicitly or implicitly via -kernel &co) would result in a segfault because of a NULL pointer returned from qemu_opts_find(qemu_find_opts("machine"), 0). Signed-off-by: Peter Maydell --- Oo