diff options
-rw-r--r-- | qemu-option.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-option.c b/qemu-option.c index acd74f9124..f88486580c 100644 --- a/qemu-option.c +++ b/qemu-option.c @@ -378,6 +378,7 @@ QEMUOptionParameter *append_option_parameters(QEMUOptionParameter *dest, num_options += count_option_parameters(list); dest = qemu_realloc(dest, (num_options + 1) * sizeof(QEMUOptionParameter)); + dest[num_dest_options].name = NULL; while (list && list->name) { if (get_option_parameter(dest, list->name) == NULL) { |