]> git.proxmox.com Git - qemu.git/commit - qemu-option.c
qemu-option: fix parse_option_number().
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 29 Jul 2009 08:39:59 +0000 (10:39 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 30 Jul 2009 14:50:37 +0000 (09:50 -0500)
commit21c9f4cdc63f4ab85f7271b5d6de999ad74d4488
tree0c4e0c46eea1ee91a69ceb671d705159edd8253b
parenta414c306c06c4ee9cb05af645b9fee6f8ea34038
qemu-option: fix parse_option_number().

It works much better when parse_option_number actually
returns the number parsed ...

Common breakage resulting from this bug is that
'qemu -hda foo.img -cdrom bar.iso' stops working
(cdrom isn't there).

Cc: Avi Kivity <avi@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-option.c