qemu-option: Fix uninitialized value in append_option_parameter
authorKevin Wolf <kwolf@redhat.com>
Fri, 11 Jun 2010 08:19:41 +0000 (10:19 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 14 Jun 2010 16:12:53 +0000 (11:12 -0500)
commit7327adc926c0fe9bd9768d4490a7c0708edaf051
treee1357f8f5bade1e051e6c9bfceb2ed0f48ebaa85
parent95f6500ca841d40c8cd3f823f995e218d1ea4c2f
qemu-option: Fix uninitialized value in append_option_parameter

When dest is NULL, i.e. a new copy of the list is created, we don't get a
properly terminated list after the realloc. Initialize it as an empty list.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-option.c